2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 19:31:35 +00:00

Only log closing spans, not opening spans

This commit is contained in:
Aode (lion) 2021-11-24 21:54:27 -06:00
parent 6785525850
commit 7a3d1bef5a

View file

@ -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()