From 37d9fce88e346d2ec179e864794c0c1f001c32cd Mon Sep 17 00:00:00 2001 From: bitxeno Date: Tue, 5 Mar 2024 15:02:56 +0800 Subject: [PATCH] Fix RUST_LOG not working (#967) --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 83ba2cd1d3..a9f6c6735f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,6 +8,7 @@ use dav_server::{memls::MemLs, DavHandler}; use futures_util::stream::StreamExt; use self_update::cargo_crate_version; use tracing::{debug, info, warn}; +use tracing_subscriber::EnvFilter; #[cfg(unix)] use {signal_hook::consts::signal::*, signal_hook_tokio::Signals}; @@ -142,6 +143,7 @@ async fn main() -> anyhow::Result<()> { } } tracing_subscriber::fmt() + .with_env_filter(EnvFilter::from_default_env()) .with_timer(tracing_subscriber::fmt::time::time()) .init();