Skip to content

Commit f0dafaa

Browse files
fix: remove redundant
Signed-off-by: Swarnim Arun <[email protected]>
1 parent 4427447 commit f0dafaa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/fmtlogger.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ impl Log for Logger {
6969
pub fn default() {
7070
static LOGGER: OnceLock<Logger> = OnceLock::new();
7171
let logger = LOGGER.get_or_init(|| Logger {
72-
level: std::env::var_os("RUST_LOG")
73-
.map(|x| x.into_string().ok())
74-
.flatten()
72+
level: std::env::var("RUST_LOG")
7573
.map(|x| match x.as_str() {
7674
"warn" => log::LevelFilter::Warn,
7775
"trace" => log::LevelFilter::Trace,

0 commit comments

Comments
 (0)