From ec715d78fbd04fc4225808797677952dcdab5e37 Mon Sep 17 00:00:00 2001 From: Nick Fox Date: Wed, 26 Dec 2018 11:54:31 -0500 Subject: [PATCH] Change log timestamp format so fail2ban can parse it --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 160d2f5f..0f0b6f78 100644 --- a/src/main.rs +++ b/src/main.rs @@ -71,7 +71,7 @@ fn init_logging() -> Result<(), fern::InitError> { .format(|out, message, record| { out.finish(format_args!( "{}[{}][{}] {}", - chrono::Local::now().format("[%Y-%m-%d][%H:%M:%S]"), + chrono::Local::now().format("[%Y-%m-%d %H:%M:%S]"), record.target(), record.level(), message