Direct RUSTC_LOG (tracing/log) output to stderr instead of stdout.

This commit is contained in:
Eduard-Mihai Burtescu 2020-11-20 19:34:44 +02:00
parent c9c57fadc4
commit 5ed2d42334
1 changed files with 1 additions and 0 deletions

View File

@ -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)