set default level info and log seed at startup

This commit is contained in:
Pere Diaz Bou 2025-05-30 11:02:05 +02:00
parent 8ec7e616b4
commit d3495238c4
2 changed files with 2 additions and 2 deletions

View file

@ -564,6 +564,7 @@ fn setup_simulation(
) -> (u64, SimulatorEnv, Vec<InteractionPlan>) {
if let Some(seed) = &cli_opts.load {
let seed = seed.parse::<u64>().expect("seed should be a number");
tracing::info!("seed={}", seed);
let bug = bugbase
.get_bug(seed)
.unwrap_or_else(|| panic!("bug '{}' not found in bug base", seed));
@ -660,7 +661,7 @@ fn init_logger() {
.without_time()
.with_thread_ids(false),
)
.with(EnvFilter::from_default_env())
.with(EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info")))
.try_init();
}