Skip to content

Commit d3959e5

Browse files
committed
tracing: Fix RUST_LOG parsing
This used to work and I'm not exactly sure what changed. For some reason `with_env_filter` needs to be at the end of the chain for the RUST_LOG env var parsing to work. Signed-off-by: ckyrouac <ckyrouac@redhat.com>
1 parent b088833 commit d3959e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/src/tracing_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ pub fn initialize_tracing() {
1111
.compact();
1212
// Log to stderr by default
1313
tracing_subscriber::fmt()
14-
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
1514
.event_format(format)
1615
.with_writer(std::io::stderr)
1716
.with_max_level(tracing::Level::WARN)
17+
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
1818
.init();
1919
}

0 commit comments

Comments
 (0)