Skip to content

Commit

Permalink
Auto multiline V2 - reuse cached message. Fixes panic in journald wit…
Browse files Browse the repository at this point in the history
…h processing rules. (#33077)
  • Loading branch information
gh123man authored Jan 17, 2025
1 parent 6ce5f00 commit 8163d0e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ func (b *bucket) flush() *message.Message {
content = append(content, message.TruncatedFlag...)
}

msg := message.NewRawMessage(content, b.message.Status, b.originalDataLen, b.message.ParsingExtra.Timestamp)
msg := b.message
msg.SetContent(content)
msg.RawDataLen = b.originalDataLen
tlmTags := []string{"false", "single_line"}

if b.lineCount > 1 {
Expand Down

0 comments on commit 8163d0e

Please sign in to comment.