Skip to content

Commit

Permalink
multiline: remove incorrect flush
Browse files Browse the repository at this point in the history
we are flushing the stream buffer in case it is
different in two consecutive runs, which leads to
incorrect parsing of multiline logs where we have
messages from different streams (stderr & stdout for ex)
interleaved

Signed-off-by: Aditya Prajapati <[email protected]>
  • Loading branch information
Aditya Prajapati authored and edsiper committed Jun 13, 2023
1 parent f69b9b6 commit 00cd2d0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/multiline/flb_ml.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ static int package_content(struct flb_ml_stream *mst,
}
else {
if (mst->last_stream_group != stream_group) {
flb_ml_flush_stream_group(parser, mst, mst->last_stream_group, FLB_FALSE);
mst->last_stream_group = stream_group;
}
}
Expand Down

0 comments on commit 00cd2d0

Please sign in to comment.