diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-11-21 19:44:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-21 19:44:15 +0100 |
| commit | 3958ceccacb5d07c2aa6546ffe6b3978100fd18b (patch) | |
| tree | 509174453d51807c0e258880904c9723c1658d0c | |
| parent | bb73ea670296e5a633310c7c5a6e3852928a4383 (diff) | |
| parent | 5ed2d4233472a37b1754804257930d29b5cd7b4b (diff) | |
| download | rust-3958ceccacb5d07c2aa6546ffe6b3978100fd18b.tar.gz rust-3958ceccacb5d07c2aa6546ffe6b3978100fd18b.zip | |
Rollup merge of #79238 - eddyb:rustc-log-stderr, r=jyn514
Direct RUSTC_LOG (tracing/log) output to stderr instead of stdout. Looks like this got missed in the initial implementation, AFAIK the old behavior was to output on stderr. (Hit this while trying to debug `rustc` running inside a build script which was only letting stderr through) r? ``@oli-obk`` cc ``@davidbarsky`` ``@hawkw``
| -rw-r--r-- | compiler/rustc_driver/src/lib.rs | 1 |
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) |
