mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-20 01:44:19 +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 {
|
pub(crate) fn execute_query(&self, conn: &mut Rc<Connection>, io: &SimulatorIO) -> ResultSet {
|
||||||
if let Self::Query(query) = self {
|
if let Self::Query(query) = self {
|
||||||
let query_str = query.to_string();
|
let query_str = query.to_string();
|
||||||
tracing::info!("executing: {}", query_str);
|
|
||||||
let rows = conn.query(&query_str);
|
let rows = conn.query(&query_str);
|
||||||
if rows.is_err() {
|
if rows.is_err() {
|
||||||
let err = rows.err();
|
let err = rows.err();
|
||||||
|
|||||||
@@ -564,6 +564,7 @@ fn setup_simulation(
|
|||||||
) -> (u64, SimulatorEnv, Vec<InteractionPlan>) {
|
) -> (u64, SimulatorEnv, Vec<InteractionPlan>) {
|
||||||
if let Some(seed) = &cli_opts.load {
|
if let Some(seed) = &cli_opts.load {
|
||||||
let seed = seed.parse::<u64>().expect("seed should be a number");
|
let seed = seed.parse::<u64>().expect("seed should be a number");
|
||||||
|
tracing::info!("seed={}", seed);
|
||||||
let bug = bugbase
|
let bug = bugbase
|
||||||
.get_bug(seed)
|
.get_bug(seed)
|
||||||
.unwrap_or_else(|| panic!("bug '{}' not found in bug base", seed));
|
.unwrap_or_else(|| panic!("bug '{}' not found in bug base", seed));
|
||||||
@@ -660,7 +661,7 @@ fn init_logger() {
|
|||||||
.without_time()
|
.without_time()
|
||||||
.with_thread_ids(false),
|
.with_thread_ids(false),
|
||||||
)
|
)
|
||||||
.with(EnvFilter::from_default_env())
|
.with(EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info")))
|
||||||
.try_init();
|
.try_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user