You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
subscriber: warn if trying to enable a statically disabled level (#990)
## Motivation
Fixes#975.
## Solution
This implements the warning in `tracing-subscriber` only, as mentioned
in
#975 (comment).
It warns whenever directives are parsed, including programmatically and
through environment variables. It does not include the suggested new API
which returns the filters that wouldn't be parsed.
- List filters that would be ignored
- Mention 'static max level'
- Describe how to enable the logging
Example output:
```
$ RUST_LOG=off,debug,silenced[x]=trace cargo run -q
warning: some trace filter directives would enable traces that are disabled statically
| `debug` would enable the DEBUG level for all targets
| `silenced[x]=trace` would enable the TRACE level for the `silenced` target
= note: the static max level is info
= note: to enable DEBUG logging, remove the `max_level_info` feature
```

0 commit comments