Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subscriber: let
EnvFIlter
's filter disabled help say help without a…
…nsi_term (#2029) ## Motivation EnvFilter with ansi_term will say something like the following when statically disabled filters are present: ``` warning: some trace filter directives would enable traces ... = note: the static max level is `LEVEL` = help: to enable LEVEL logging, ... ``` Without the ansi_term feature, it instead says something like the following: ``` warning: some trace filter directives would enable traces ... note: the static max level is `LEVEL` note: to enable LEVEL logging, ... ``` This is due to a simple error in cfg'd code that ignores the requested prefix and always uses `note:` when `not(feature = "ansi_term")`. ## Solution Use the unused `prefix` variable to do what it does when `feature = "ansi_term"`. The output without ansi_term is now ``` warning: some trace filter directives would enable traces ... note: the static max level is `LEVEL` help: to enable LEVEL logging, ... ```
- Loading branch information