fix: hide sqlx queries

args are hidden anyway and they are quite unreadable
This commit is contained in:
əlemi 2024-03-22 17:49:25 +01:00
parent 65cd8e8070
commit 69c06d4a9c

View file

@ -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);