mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 10:48:32 +00:00
[red-knot] add tracing of salsa events in mdtests
This commit is contained in:
parent
7ce1db380d
commit
cff8ab1202
3 changed files with 6 additions and 1 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -2647,6 +2647,7 @@ dependencies = [
|
||||||
"tempfile",
|
"tempfile",
|
||||||
"thiserror 2.0.12",
|
"thiserror 2.0.12",
|
||||||
"toml",
|
"toml",
|
||||||
|
"tracing",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
|
@ -33,6 +33,7 @@ smallvec = { workspace = true }
|
||||||
serde = { workspace = true }
|
serde = { workspace = true }
|
||||||
tempfile = { workspace = true }
|
tempfile = { workspace = true }
|
||||||
toml = { workspace = true }
|
toml = { workspace = true }
|
||||||
|
tracing = { workspace = true }
|
||||||
thiserror = { workspace = true }
|
thiserror = { workspace = true }
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
|
|
|
@ -96,7 +96,10 @@ impl SemanticDb for Db {
|
||||||
|
|
||||||
#[salsa::db]
|
#[salsa::db]
|
||||||
impl salsa::Database for 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 {
|
impl DbWithWritableSystem for Db {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue