Remove log and env_logger in favor of tracing

- Deleted `log` and `env_logger` from simulator dependencies
- Migrated remaining `log::error!` and `log::trace!` calls to `tracing` macros
This commit is contained in:
bit-aloo
2025-10-02 19:09:09 +05:30
parent 641c3a73d0
commit 889ae2cd78
3 changed files with 2 additions and 5 deletions

2
Cargo.lock generated
View File

@@ -2351,13 +2351,11 @@ dependencies = [
"clap",
"dirs 6.0.0",
"either",
"env_logger 0.11.7",
"garde",
"hex",
"indexmap 2.11.1",
"itertools 0.14.0",
"json5",
"log",
"notify",
"parking_lot",
"rand 0.9.2",

View File

@@ -18,8 +18,6 @@ path = "main.rs"
turso_core = { workspace = true, features = ["simulator"]}
rand = { workspace = true }
rand_chacha = { workspace = true }
log = "0.4.20"
env_logger = { workspace = true }
regex = { workspace = true }
regex-syntax = { workspace = true, default-features = false, features = [
"unicode",

View File

@@ -21,6 +21,7 @@ use sql_generation::{
table::SimValue,
},
};
use tracing::error;
use turso_core::{Connection, Result, StepResult};
use crate::{
@@ -121,7 +122,7 @@ impl InteractionPlan {
let _ = plan[j].split_off(k);
break;
}
log::error!("Comparing '{}' with '{}'", interactions[i], plan[j][k]);
error!("Comparing '{}' with '{}'", interactions[i], plan[j][k]);
if interactions[i].contains(plan[j][k].to_string().as_str()) {
i += 1;
k += 1;