logs route: make memory profiling toggling usable

This commit is contained in:
Louis Dureuil 2024-02-07 15:48:21 +01:00
parent 902d700a24
commit 91eb67e981
No known key found for this signature in database

View File

@ -172,7 +172,7 @@ fn make_layer<
(Box::new(fmt_layer) as Box<dyn Layer<S> + Send + Sync>, Box::pin(stream))
}
LogMode::Profile => {
let (trace, layer) = tracing_trace::Trace::new();
let (trace, layer) = tracing_trace::Trace::new(opt.profile_memory);
let stream = entry_stream(trace, guard);