From d0a8c2cb96127e6372a0889205a454b9fa617566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Th=C3=A9riault?= Date: Thu, 1 Oct 2020 23:45:00 -0400 Subject: [PATCH] Fix auth --- src/auth.rs | 2 +- src/tests.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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();