diff --git a/src/auth.rs b/src/auth.rs index 04b7c64..3cdaa16 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -32,7 +32,7 @@ async fn user(header: HeaderValue, db: &Db, config: &Config) -> Result (&'static Config, &'static Db) { tracing_subscriber::fmt() - .with_env_filter("debug") + .with_env_filter(EnvFilter::try_from_default_env().unwrap_or_else(|_| "warn".into())) .with_span_events(FmtSpan::CLOSE) .try_init() .ok();