about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2020-11-20 19:34:44 +0200
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2020-11-20 19:34:44 +0200
commit5ed2d4233472a37b1754804257930d29b5cd7b4b (patch)
tree3296d52a2359ff9005a844eb3f90192c64983d41
parentc9c57fadc47c8ad986808fc0a47479f6d2043453 (diff)
downloadrust-5ed2d4233472a37b1754804257930d29b5cd7b4b.tar.gz
rust-5ed2d4233472a37b1754804257930d29b5cd7b4b.zip
Direct RUSTC_LOG (tracing/log) output to stderr instead of stdout.
-rw-r--r--compiler/rustc_driver/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs
index c5447612555..e49e456792b 100644
--- a/compiler/rustc_driver/src/lib.rs
+++ b/compiler/rustc_driver/src/lib.rs
@@ -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)