From 7a3d1bef5aaa3ba3d432831a567b1638c384eaaa Mon Sep 17 00:00:00 2001 From: "Aode (lion)" Date: Wed, 24 Nov 2021 21:54:27 -0600 Subject: [PATCH] Only log closing spans, not opening spans --- src/init_tracing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init_tracing.rs b/src/init_tracing.rs index e8346ed..8b22f64 100644 --- a/src/init_tracing.rs +++ b/src/init_tracing.rs @@ -19,7 +19,7 @@ pub(super) fn init_tracing( let env_filter = EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info")); let format_layer = tracing_subscriber::fmt::layer() - .with_span_events(FmtSpan::NEW | FmtSpan::CLOSE) + .with_span_events(FmtSpan::CLOSE) .pretty(); let subscriber = Registry::default()