Skip to content

Commit

Permalink
Direct RUSTC_LOG (tracing/log) output to stderr instead of stdout.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyb committed Nov 20, 2020
1 parent c9c57fa commit 5ed2d42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_driver/src/lib.rs
Expand Up @@ -1286,6 +1286,7 @@ pub fn init_env_logger(env: &str) {
}
let filter = tracing_subscriber::EnvFilter::from_env(env);
let layer = tracing_tree::HierarchicalLayer::default()
.with_writer(io::stderr)
.with_indent_lines(true)
.with_ansi(true)
.with_targets(true)
Expand Down

0 comments on commit 5ed2d42

Please sign in to comment.