From 91eb67e981902ecddb3a2aac54c2dac518347802 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Wed, 7 Feb 2024 15:48:21 +0100 Subject: [PATCH] logs route: make memory profiling toggling usable --- meilisearch/src/routes/logs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch/src/routes/logs.rs b/meilisearch/src/routes/logs.rs index ae93f0ea5..db80d976d 100644 --- a/meilisearch/src/routes/logs.rs +++ b/meilisearch/src/routes/logs.rs @@ -172,7 +172,7 @@ fn make_layer< (Box::new(fmt_layer) as Box + 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);