This fixes casting of log message []byte into string with --log-opt line-only=true
Signed-off-by: Igor Karpovich <igor@karpovich.me> Upstream-commit: 440e50b6c702b5e13fff9424ef656b6bb6a259f0 Component: engine
This commit is contained in:
@@ -76,7 +76,7 @@ func (f *logentries) Log(msg *logger.Message) error {
|
||||
logger.PutMessage(msg)
|
||||
f.writer.Println(f.tag, ts, data)
|
||||
} else {
|
||||
line := msg.Line
|
||||
line := string(msg.Line)
|
||||
logger.PutMessage(msg)
|
||||
f.writer.Println(line)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user