tokio-rs / tracing

Application level tracing for Rust.
https://tracing.rs
MIT License
5.14k stars 671 forks source link

fix: align `EnvFilter::try_new` with its documentation #3011

Open wyfo opened 2 weeks ago

wyfo commented 2 weeks ago

EnvFilter::try_new documentation is clearly missleading. However, the documentation is aligned with EnvFilter::new behavior (and documentation). So I assume the fix must be to align EnvFilter::try_new code with its documentation, and not the opposite. I also renamed the parameter to align it with EnvFilter::new.