Skip to content

Commit

Permalink
Fix RUST_LOG not working (#967)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitxeno authored Mar 5, 2024
1 parent 8069917 commit 37d9fce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 37d9fce

Please sign in to comment.