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();