Skip to content

Commit 81ba756

Browse files
authored
tracing: Disable tokio_postgres debug logs for tests (#9560)
1 parent 7ecdc11 commit 81ba756

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/tracing.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ pub fn event_filter(metadata: &Metadata<'_>) -> EventFilter {
6363
pub fn init_for_test() {
6464
let env_filter = EnvFilter::builder()
6565
.with_default_directive(LevelFilter::DEBUG.into())
66-
.from_env_lossy();
66+
.from_env_lossy()
67+
.add_directive("tokio_postgres=info".parse().unwrap());
6768

6869
let _ = tracing_subscriber::fmt()
6970
.compact()

0 commit comments

Comments
 (0)