Open kornelski opened 2 years ago
RUST_LOG=DEBUG,html5ever=off,tantivy=off
I know it's possible to set it manually every time, but my whole point is that I would like to avoid having to do this the long way, and provide a better default. In other words I'd like:
RUST_LOG=debug
to behave like RUST_LOG=debug,html5ever=off,tantivy=off
, and ideallyRUST_LOG=debug,html5ever=on
to behave like RUST_LOG=debug,html5ever=on,tantivy=off
I'd like to have
RUST_LOG
env variable to work as usual, except never log anything from a couple of noisy dependencies.I thought this would do the trick:
but it seems that
RUST_LOG=debug
enables debug output even for the dependencies I'm trying to filter out.Is there a way to gracefully combine env vars and explicit filters, with my
filter()
calls taking precedence?