lib/logstorage: add _msg="---" delimiter between different log streams in stream_context output

This should help investigating contexts, which belong to different log streams.
This commit is contained in:
Aliaksandr Valialkin 2024-09-27 11:00:28 +02:00
parent e83dc8b30a
commit bce56d430d
No known key found for this signature in database
GPG Key ID: 52C003EE2BCDB9EB

View File

@ -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)