From bd83c6bba080b4828561f9f263c7809920283565 Mon Sep 17 00:00:00 2001 From: Alex Butler Date: Wed, 14 Feb 2024 13:46:13 +0000 Subject: [PATCH] Maintain default log level info --- src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 17c3d38..8b90b8b 100644 --- a/src/main.rs +++ a/src/main.rs @@ -57,8 +57,11 @@ #[tokio::main] async fn main() -> anyhow::Result<()> { - let subscriber = tracing_subscriber::fmt() - .with_env_filter(tracing_subscriber::EnvFilter::from_default_env()); + let subscriber = tracing_subscriber::fmt().with_env_filter( + tracing_subscriber::EnvFilter::builder() + .with_default_directive(tracing::level_filters::LevelFilter::INFO.into()) + .from_env_lossy(), + ); #[cfg(debug_assertions)] let subscriber = subscriber.pretty(); subscriber.init(); -- rgit 0.1.3