1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00

strip newline

This commit is contained in:
Asim Aslam 2019-12-18 15:19:20 +00:00
parent 5d7254e79a
commit a82af19d43

View File

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