default to debug logs

This commit is contained in:
dignifiedquire
2024-05-18 13:56:45 +02:00
parent 9fb003563b
commit 7b046692ae

View File

@@ -341,7 +341,11 @@ impl Context {
// set the RUST_LOG env var to one of {debug,info,warn} to see logging info
tracing_subscriber::registry()
.with(tracing_subscriber::fmt::layer().with_writer(std::io::stderr))
.with(EnvFilter::from_default_env())
.with(
EnvFilter::builder()
.with_default_directive(tracing_subscriber::filter::LevelFilter::DEBUG.into())
.from_env_lossy(),
)
.try_init()
.ok();