strip newline
This commit is contained in:
parent
5d7254e79a
commit
a82af19d43
@ -5,6 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -86,7 +87,7 @@ func (o *osLog) run() {
|
|||||||
} else {
|
} else {
|
||||||
r = Record{
|
r = Record{
|
||||||
Timestamp: time.Now(),
|
Timestamp: time.Now(),
|
||||||
Value: line,
|
Value: strings.TrimSuffix(line, "\n"),
|
||||||
Metadata: make(map[string]string),
|
Metadata: make(map[string]string),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user