forked from tokio-rs/tracing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `NO_COLOR` environment variable should disable all ANSI color output (https:://no-color.org). This commit updates `fmt::Subscriber` to check the `NO_COLOR` environment variable before enabling ANSI color output. As described in the spec, any non-empty value set for `NO_COLOR` will prevent `is_ansi` from being set to `true`. fixes tokio-rs#2388
- Loading branch information
Showing
1 changed file
with
72 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters