simulator: Enable info-level logging by default

This commit is contained in:
Pekka Enberg
2025-01-14 17:54:39 +02:00
parent 30a380cab1
commit 0c7ebd4df5

View File

@@ -20,7 +20,7 @@ mod model;
mod runner;
fn main() {
let _ = env_logger::try_init();
init_logger();
let cli_opts = SimulatorCLI::parse();
@@ -326,3 +326,11 @@ fn compare_equal_rows(a: &[Vec<Value>], b: &[Vec<Value>]) {
}
}
}
fn init_logger() {
env_logger::Builder::from_env(env_logger::Env::default().filter_or("RUST_LOG", "info"))
.format_timestamp(None)
.format_module_path(false)
.format_target(false)
.init();
}