From 32529d744214eb9021366d1cae1984b24a809063 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Tue, 6 Feb 2024 18:05:02 +0100 Subject: [PATCH] logs route profile mode: don't barf bytes if the buffer is not empty --- meilisearch/src/routes/logs.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meilisearch/src/routes/logs.rs b/meilisearch/src/routes/logs.rs index a62f6d648..48bf181be 100644 --- a/meilisearch/src/routes/logs.rs +++ b/meilisearch/src/routes/logs.rs @@ -186,6 +186,10 @@ fn entry_stream( }; if count == 0 { + if !bytes.is_empty() { + break; + } + // channel closed, exit return None; }