add back the actix-web logs

This commit is contained in:
Tamo 2024-02-07 09:20:18 +01:00 committed by Louis Dureuil
parent 661baa716b
commit 4de2db6786
No known key found for this signature in database
4 changed files with 43 additions and 2 deletions

View file

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