diff --git a/Cargo.lock b/Cargo.lock index 08fc8c0c70..efc17902f2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9545,6 +9545,7 @@ dependencies = [ "tempfile", "tokio", "tracing", + "tracing-subscriber", "windows 0.61.1", ] diff --git a/sqlx-pool-guard/Cargo.toml b/sqlx-pool-guard/Cargo.toml index c576f522a0..5482346200 100644 --- a/sqlx-pool-guard/Cargo.toml +++ b/sqlx-pool-guard/Cargo.toml @@ -31,4 +31,5 @@ windows = { version = "0.61", features = [ ] } [dev-dependencies] -tempfile = { workspace = true } +tempfile.workspace = true +tracing-subscriber.workspace = true diff --git a/sqlx-pool-guard/src/lib.rs b/sqlx-pool-guard/src/lib.rs index fc5169b519..d9d89eaae7 100644 --- a/sqlx-pool-guard/src/lib.rs +++ b/sqlx-pool-guard/src/lib.rs @@ -141,6 +141,10 @@ mod tests { #[tokio::test] async fn test_wait_close() { + tracing_subscriber::fmt() + .with_max_level(tracing::Level::TRACE) + .init(); + let temp_dir = tempfile::tempdir().unwrap(); let database_path = temp_dir.path().join("storage.db");