From bce56d430dbc72d4e24c4ce4bfc0dd203b7953d6 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Fri, 27 Sep 2024 11:00:28 +0200 Subject: [PATCH] lib/logstorage: add _msg="---" delimiter between different log streams in stream_context output This should help investigating contexts, which belong to different log streams. --- lib/logstorage/pipe_stream_context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logstorage/pipe_stream_context.go b/lib/logstorage/pipe_stream_context.go index 1f4c4017dd..e9a6d790bd 100644 --- a/lib/logstorage/pipe_stream_context.go +++ b/lib/logstorage/pipe_stream_context.go @@ -544,7 +544,7 @@ func (pcp *pipeStreamContextProcessor) flush() error { for _, streamRow := range streamRows { wctx.writeRow(streamRow.fields) } - if len(streamRowss) > 1 { + if len(m) > 1 || len(streamRowss) > 1 { lastRow := streamRows[len(streamRows)-1] fields := newDelimiterRowFields(lastRow, streamID) wctx.writeRow(fields)