From 2e42f3c0c513f800f7f00849254620731b6202e3 Mon Sep 17 00:00:00 2001 From: "Aode (lion)" Date: Wed, 24 Nov 2021 17:28:37 -0600 Subject: [PATCH] Don't log when entering spans, only when leaving --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 98c2320d1..d212fbd32 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,7 +14,7 @@ pub fn init_tracing() -> Result<(), LemmyError> { 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()