From 69c06d4a9c210766029bcd954d205b986eaea6ad Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 22 Mar 2024 17:49:25 +0100 Subject: [PATCH] fix: hide sqlx queries args are hidden anyway and they are quite unreadable --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index e132a0b..740a4f9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -61,6 +61,7 @@ async fn main() { tracing_subscriber::fmt() .compact() .with_max_level(if args.debug { tracing::Level::DEBUG } else { tracing::Level::INFO }) + .with(tracing_subscriber::filter::filter_fn(|x| args.debug || x.target() != "sqlx::query")) .init(); let mut opts = ConnectOptions::new(&args.database);