mirror of https://github.com/LemmyNet/lemmy.git
Don't log when entering spans, only when leaving
parent
12d2a62e40
commit
2e42f3c0c5
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue