Don't log when entering spans, only when leaving

asonix/better-errors
Aode (lion) 2021-11-24 17:28:37 -06:00
parent 12d2a62e40
commit 2e42f3c0c5
1 changed files with 1 additions and 1 deletions

View File

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