depot/pkgs/development/tools/rcodesign/fix-verbosity-level.patch
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

19 lines
618 B
Diff

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 {