Skip to content

Commit 569c2fe

Browse files
committed
avoid duplicating the RUSTC_LOG env var name
1 parent c40919b commit 569c2fe

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

compiler/rustc_log/src/lib.rs

-6
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@ use tracing_subscriber::fmt::{
5353
};
5454
use tracing_subscriber::layer::SubscriberExt;
5555

56-
pub fn init_rustc_env_logger() -> Result<(), Error> {
57-
init_env_logger("RUSTC_LOG")
58-
}
59-
60-
/// In contrast to `init_rustc_env_logger` this allows you to choose an env var
61-
/// other than `RUSTC_LOG`.
6256
pub fn init_env_logger(env: &str) -> Result<(), Error> {
6357
let filter = match env::var(env) {
6458
Ok(env) => EnvFilter::new(env),

0 commit comments

Comments
 (0)