ignore sqlx logging

This commit is contained in:
Brandon Thomas committed 2021-05-25 03:07:22 -04:00
1 parent 40f403be69
commit f536ce02cf
2 files changed
+5 -2

No files matched your search

+3 -1
View File
@@ -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<T> = anyhow::Result<T>;
+2 -1
View File
@@ -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 {