mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-19 01:24:20 +01:00
set default level info and log seed at startup
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user