[red-knot] add tracing of salsa events in mdtests (#17803)

This commit is contained in:
Carl Meyer 2025-05-03 00:00:11 -07:00 committed by GitHub
parent 96697c98f3
commit 78d4356301
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 1 deletions

1
Cargo.lock generated
View File

@ -2647,6 +2647,7 @@ dependencies = [
"tempfile",
"thiserror 2.0.12",
"toml",
"tracing",
]
[[package]]

View File

@ -33,6 +33,7 @@ smallvec = { workspace = true }
serde = { workspace = true }
tempfile = { workspace = true }
toml = { workspace = true }
tracing = { workspace = true }
thiserror = { workspace = true }
[lints]

View File

@ -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 {