Skip to content

Commit 116a881

Browse files
tgauthCopilot
andauthored
Update sshdconfig/src/util.rs
Co-authored-by: Copilot <[email protected]>
1 parent b30421d commit 116a881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sshdconfig/src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use crate::error::SshdConfigError;
1515
/// This function will return an error if it fails to initialize tracing.
1616
pub fn enable_tracing() {
1717
// default filter to trace level
18-
let filter = EnvFilter::builder().with_default_directive(LevelFilter::TRACE.into()).parse("").unwrap_or_default();
18+
let filter = EnvFilter::builder().with_default_directive(LevelFilter::TRACE.into()).from_env();
1919
let layer = tracing_subscriber::fmt::Layer::default().with_writer(std::io::stderr);
2020
let fmt = layer
2121
.with_ansi(false)

0 commit comments

Comments
 (0)