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

@@ -482,7 +482,6 @@ impl Interaction {
pub(crate) fn execute_query(&self, conn: &mut Rc<Connection>, io: &SimulatorIO) -> ResultSet {
if let Self::Query(query) = self {
let query_str = query.to_string();
tracing::info!("executing: {}", query_str);
let rows = conn.query(&query_str);
if rows.is_err() {
let err = rows.err();

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();
}