4 ms·
I too consider this a footgun. Most applications will have something like tracing_subscriber::registry() .with( tracing_subscribe
by hermanradtke 2y ago
I too consider this a footgun.
Most applications will have something like
tracing_subscriber::registry()
.with(
tracing_subscriber::EnvFilter::try_from_default_env()
.unwrap_or_else(|_| "my_app=info".into()),
)
.with(tracing_subscriber::fmt::layer())
.init();
in the `main.rs` which will default the tracing if RUST_LOG env var is not set.
- imor80 2y agoThanks for trying out, I'll update the code and/or the README to fix this.