diff --git a/debug/log/os.go b/debug/log/os.go index 60f47d05..1404a5b2 100644 --- a/debug/log/os.go +++ b/debug/log/os.go @@ -5,6 +5,7 @@ import ( "encoding/json" "io" "os" + "strings" "sync" "time" @@ -86,7 +87,7 @@ func (o *osLog) run() { } else { r = Record{ Timestamp: time.Now(), - Value: line, + Value: strings.TrimSuffix(line, "\n"), Metadata: make(map[string]string), } }