diff --git a/Cargo.lock b/Cargo.lock index db2f5d5c1c..c775732fd4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2647,6 +2647,7 @@ dependencies = [ "tempfile", "thiserror 2.0.12", "toml", + "tracing", ] [[package]] diff --git a/crates/red_knot_test/Cargo.toml b/crates/red_knot_test/Cargo.toml index 06727647c9..73aeb8daa4 100644 --- a/crates/red_knot_test/Cargo.toml +++ b/crates/red_knot_test/Cargo.toml @@ -33,6 +33,7 @@ smallvec = { workspace = true } serde = { workspace = true } tempfile = { workspace = true } toml = { workspace = true } +tracing = { workspace = true } thiserror = { workspace = true } [lints] diff --git a/crates/red_knot_test/src/db.rs b/crates/red_knot_test/src/db.rs index b4fcccb927..c26206e66a 100644 --- a/crates/red_knot_test/src/db.rs +++ b/crates/red_knot_test/src/db.rs @@ -96,7 +96,10 @@ impl SemanticDb for Db { #[salsa::db] impl salsa::Database for Db { - fn salsa_event(&self, _event: &dyn Fn() -> salsa::Event) {} + fn salsa_event(&self, event: &dyn Fn() -> salsa::Event) { + let event = event(); + tracing::trace!("event: {:?}", event); + } } impl DbWithWritableSystem for Db {