Change tower logging level to error

This commit is contained in:
Klemens Schölhorn 2024-01-21 17:56:01 +01:00
parent 54295ea098
commit 9c319d6949

View File

@ -54,7 +54,7 @@ async fn main() {
let mut secret_key: SecretKey = [0; 64]; let mut secret_key: SecretKey = [0; 64];
OsRng.fill_bytes(&mut secret_key); OsRng.fill_bytes(&mut secret_key);
let default_tracing = "image_gallery=debug,tower_http=info".into(); let default_tracing = "image_gallery=debug,tower_http=error".into();
let tracing_filter = EnvFilter::try_from_default_env().unwrap_or(default_tracing); let tracing_filter = EnvFilter::try_from_default_env().unwrap_or(default_tracing);
let tracing_formatter = tracing_subscriber::fmt::layer() let tracing_formatter = tracing_subscriber::fmt::layer()
.with_target(false) .with_target(false)