update the actix-web trace

This commit is contained in:
Tamo 2024-02-08 13:49:13 +01:00 committed by Louis Dureuil
parent 1502382316
commit cfb3e6b51f
No known key found for this signature in database
2 changed files with 41 additions and 3 deletions

View file

@ -34,7 +34,7 @@ fn setup(opt: &Opt) -> anyhow::Result<LogRouteHandle> {
let subscriber = tracing_subscriber::registry().with(route_layer).with(
tracing_subscriber::fmt::layer()
.with_span_events(tracing_subscriber::fmt::format::FmtSpan::NEW)
.with_span_events(tracing_subscriber::fmt::format::FmtSpan::CLOSE)
.with_filter(
tracing_subscriber::filter::LevelFilter::from_str(&opt.log_level.to_string())
.unwrap(),