commit ec715d78fbd04fc4225808797677952dcdab5e37
parent 3f5df3ef8d73478e2f98f5c19872e1c68df2a9b0
Author: Nick Fox <nick@foxsec.net>
Date: Wed, 26 Dec 2018 11:54:31 -0500
Change log timestamp format so fail2ban can parse it
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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