diff --git a/src/main.rs b/src/main.rs index fca1ed55a2..6acc5b7061 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,7 +42,9 @@ use sqlx::mysql::MySqlPoolOptions; use std::sync::Arc; const DEFAULT_BIND_ADDRESS : &'static str = "0.0.0.0:12345"; -const DEFAULT_RUST_LOG: &'static str = "debug,actix_web=info"; + +// NB: sqlx::query is spammy and logs all queries as "info"-level +const DEFAULT_RUST_LOG: &'static str = "debug,actix_web=info,sqlx::query=warn"; pub type AnyhowResult = anyhow::Result; diff --git a/src/tts_download_job.rs b/src/tts_download_job.rs index d0b8b9efb3..17b62a7b3b 100644 --- a/src/tts_download_job.rs +++ b/src/tts_download_job.rs @@ -43,7 +43,8 @@ const ENV_REGION_NAME : &'static str = "REGION_NAME"; const ENV_BUCKET_NAME : &'static str = "TTS_DOWNLOAD_BUCKET_NAME"; const ENV_BUCKET_ROOT : &'static str = "TTS_DOWNLOAD_BUCKET_ROOT"; -const DEFAULT_RUST_LOG: &'static str = "debug,actix_web=info"; +// NB: sqlx::query is spammy and logs all queries as "info"-level +const DEFAULT_RUST_LOG: &'static str = "debug,actix_web=info,sqlx::query=warn"; const DEFAULT_TEMP_DIR: &'static str = "/tmp"; struct Downloader {