0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-12-14 17:43:46 +01:00

Change log timestamp format so fail2ban can parse it

This commit is contained in:
Nick Fox 2018-12-26 11:54:31 -05:00
parent 3f5df3ef8d
commit ec715d78fb
No known key found for this signature in database
GPG key ID: 82719985805A7CA8

View file

@ -71,7 +71,7 @@ fn init_logging() -> Result<(), fern::InitError> {
.format(|out, message, record| { .format(|out, message, record| {
out.finish(format_args!( 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.target(),
record.level(), record.level(),
message message