Skip to content

Commit 6e9ed8b

Browse files
committed
Enable thread names in debug logging only for parallel_compiler
1 parent 9cf8a49 commit 6e9ed8b

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_driver/src

1 file changed

+2
-0
lines changed

compiler/rustc_driver/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1292,6 +1292,8 @@ pub fn init_env_logger(env: &str) {
12921292
.with_verbose_exit(true)
12931293
.with_verbose_entry(true)
12941294
.with_indent_amount(2);
1295+
#[cfg(parallel_compiler)]
1296+
let layer = layer.with_thread_ids(true).with_thread_names(true);
12951297

12961298
use tracing_subscriber::layer::SubscriberExt;
12971299
let subscriber = tracing_subscriber::Registry::default().with(filter).with(layer);

0 commit comments

Comments
 (0)