diff --git a/apple-codesign/src/cli/mod.rs b/apple-codesign/src/cli/mod.rs index 53e9649271..82d4d061a6 100644 --- a/apple-codesign/src/cli/mod.rs +++ b/apple-codesign/src/cli/mod.rs @@ -2499,9 +2499,11 @@ _ => LevelFilter::Trace, }; - let mut builder = env_logger::Builder::from_env( - env_logger::Env::default().default_filter_or(log_level.as_str()), - ); + let mut builder = env_logger::Builder::new(); + + builder + .filter_level(log_level) + .parse_default_env(); // Disable log context except at higher log levels. if log_level <= LevelFilter::Info {