From f5846d5bc2fda280dcacf80ea1fc23e07db0d2c6 Mon Sep 17 00:00:00 2001 From: Andrej Mihajlov Date: Wed, 4 Jun 2025 11:40:56 +0200 Subject: [PATCH] Log all tracing output just in case --- Cargo.lock | 1 + sqlx-pool-guard/Cargo.toml | 3 ++- sqlx-pool-guard/src/lib.rs | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) 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");