Skip to content

Commit d282aca

Browse files
committedOct 29, 2020
driver: Only output ANSI if connected to a terminal
See #78435 for more.
1 parent 6bdae9e commit d282aca

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_driver/src

1 file changed

+1
-1
lines changed
 

‎compiler/rustc_driver/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ pub fn init_env_logger(env: &str) {
12861286
let filter = tracing_subscriber::EnvFilter::from_env(env);
12871287
let layer = tracing_tree::HierarchicalLayer::default()
12881288
.with_indent_lines(true)
1289-
.with_ansi(true)
1289+
.with_ansi(stdout_isatty())
12901290
.with_targets(true)
12911291
.with_thread_ids(true)
12921292
.with_thread_names(true)

0 commit comments

Comments
 (0)
Please sign in to comment.