mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-07 01:04:26 +01:00
simulator: Enable info-level logging by default
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user