mirror of
https://github.com/zrepl/zrepl.git
synced 2025-06-20 09:47:50 +02:00
tcp outlet: add newline after each entry
otherwise tools like graylog don't parse it
This commit is contained in:
parent
c1a5b04065
commit
54b391f77c
@ -62,6 +62,9 @@ func (h *TCPOutlet) WriteEntry(ctx context.Context, e logger.Entry) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_, err = h.conn.Write(b)
|
_, err = h.conn.Write(b)
|
||||||
|
if err == nil {
|
||||||
|
_, err = h.conn.Write([]byte("\n"))
|
||||||
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "cannot write")
|
return errors.Wrap(err, "cannot write")
|
||||||
h.conn.Close()
|
h.conn.Close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user