Skip to content

Commit 9183942

Browse files
Rollup merge of #89743 - matthewjasper:env-log-fix, r=jyn514
Fix RUSTC_LOG handling Rustc was incorrectly reading the value of `RUSTC_LOG` as the environment vairable with the logging configuration, rather than the logging configuration itself.
2 parents 77be7e4 + 9e6e89a commit 9183942

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
@@ -1259,7 +1259,7 @@ pub fn init_env_logger(env: &str) {
12591259
};
12601260

12611261
let filter = match std::env::var(env) {
1262-
Ok(env) => EnvFilter::from_env(env),
1262+
Ok(env) => EnvFilter::new(env),
12631263
_ => EnvFilter::default().add_directive(filter::Directive::from(LevelFilter::WARN)),
12641264
};
12651265

0 commit comments

Comments
 (0)