mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-11-10 06:25:00 +00:00
Only log closing spans, not opening spans
This commit is contained in:
parent
6785525850
commit
7a3d1bef5a
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ pub(super) fn init_tracing(
|
||||||
|
|
||||||
let env_filter = EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info"));
|
let env_filter = EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info"));
|
||||||
let format_layer = tracing_subscriber::fmt::layer()
|
let format_layer = tracing_subscriber::fmt::layer()
|
||||||
.with_span_events(FmtSpan::NEW | FmtSpan::CLOSE)
|
.with_span_events(FmtSpan::CLOSE)
|
||||||
.pretty();
|
.pretty();
|
||||||
|
|
||||||
let subscriber = Registry::default()
|
let subscriber = Registry::default()
|
||||||
|
|
Loading…
Reference in a new issue