mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
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.
This commit is contained in:
commit
9183942e83
@ -1259,7 +1259,7 @@ pub fn init_env_logger(env: &str) {
|
||||
};
|
||||
|
||||
let filter = match std::env::var(env) {
|
||||
Ok(env) => EnvFilter::from_env(env),
|
||||
Ok(env) => EnvFilter::new(env),
|
||||
_ => EnvFilter::default().add_directive(filter::Directive::from(LevelFilter::WARN)),
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user