Skip to content

Commit

Permalink
Don't filter logging output (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisOSRM authored Dec 6, 2023
1 parent 603fead commit 4b4f840
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions src/logging.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
use std::io::Write;

use chrono::Local;
use env_logger::Builder;
use log::LevelFilter;
use env_logger::{Builder, Env};

pub fn init_logger() {
Builder::new()
.format(|buf, record| {
writeln!(
buf,
"{} [{}] - {}",
Local::now().format("%Y-%m-%dT%H:%M:%S"),
record.level(),
record.args()
)
})
.filter(None, LevelFilter::Info)
.init();
Builder::from_env(Env::default().default_filter_or("info")).init();
}

0 comments on commit 4b4f840

Please sign in to comment.