Browse Source
Change log timestamp format so fail2ban can parse it
pull/312/head
Nick Fox
6 years ago
No known key found for this signature in database
GPG Key ID: 82719985805A7CA8
1 changed files with
1 additions and
1 deletions
-
src/main.rs
|
@ -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 |
|
|