This fixes casting of log message []byte into string with --log-opt line-only=true

Signed-off-by: Igor Karpovich <igor@karpovich.me>
This commit is contained in:
Igor Karpovich 2017-11-27 14:26:53 +00:00
parent dfe2c023a3
commit 440e50b6c7
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}