Skip to content

Commit

Permalink
Comment why this prints to stderr instead of a subscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Oct 5, 2020
1 parent e1e58cb commit 989ae34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tracing-subscriber/src/filter/env/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ impl EnvFilter {
.collect();

if !disabled.is_empty() {
// NOTE: this can't use `MakeWriter` because it's not yet available;
// there is not yet a subscriber.
eprintln!("warning: some trace filter directives would enable traces that are disabled statically");
for directive in disabled {
let target = if let Some(target) = &directive.target {
Expand Down

0 comments on commit 989ae34

Please sign in to comment.