We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca8078d commit 79eed33Copy full SHA for 79eed33
compiler/rustc_driver/src/lib.rs
@@ -1253,12 +1253,6 @@ pub fn init_rustc_env_logger() {
1253
/// tracing crate version. In contrast to `init_rustc_env_logger` it allows you to choose an env var
1254
/// other than `RUSTC_LOG`.
1255
pub fn init_env_logger(env: &str) {
1256
- // Don't register a dispatcher if there's no filter to print anything
1257
- match std::env::var(env) {
1258
- Err(_) => return,
1259
- Ok(s) if s.is_empty() => return,
1260
- Ok(_) => {}
1261
- }
1262
let color_logs = match std::env::var(String::from(env) + "_COLOR") {
1263
Ok(value) => match value.as_ref() {
1264
"always" => true,
0 commit comments