Skip to content

Commit

Permalink
chore: change \\n to \n for multiline logs (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
kongfei605 authored Jul 12, 2024
1 parent b643390 commit 83a35b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logs/decoder/line_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var truncatedFlag = []byte("...TRUNCATED...")
// for multiline message.
// New line character needs to be escaped because they are used
// as delimiter for transport.
var escapedLineFeed = []byte(`\n`)
var escapedLineFeed = []byte{'\n'}

// LineHandler handles raw lines to form structured lines
type LineHandler interface {
Expand Down

0 comments on commit 83a35b8

Please sign in to comment.