We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d53f1e8 commit 831bd96Copy full SHA for 831bd96
compiler/rustc_log/src/lib.rs
@@ -67,11 +67,24 @@ pub fn init_env_logger(env: &str) -> Result<(), Error> {
67
Err(VarError::NotUnicode(_value)) => return Err(Error::NonUnicodeColorValue),
68
};
69
70
+ let verbose_entry_exit = match env::var_os(String::from(env) + "_ENTRY_EXIT") {
71
+ None => false,
72
+ Some(v) => {
73
+ if &v == "0" {
74
+ false
75
+ } else {
76
+ true
77
+ }
78
79
+ };
80
+
81
let layer = tracing_tree::HierarchicalLayer::default()
82
.with_writer(io::stderr)
83
.with_indent_lines(true)
84
.with_ansi(color_logs)
85
.with_targets(true)
86
+ .with_verbose_exit(verbose_entry_exit)
87
+ .with_verbose_entry(verbose_entry_exit)
88
.with_indent_amount(2);
89
#[cfg(parallel_compiler)]
90
let layer = layer.with_thread_ids(true).with_thread_names(true);
0 commit comments