Skip to content

Commit

Permalink
Add LF when writing to syslog via TCP
Browse files Browse the repository at this point in the history
- Fixes #121
  • Loading branch information
emabee committed Oct 4, 2022
1 parent 157de29 commit 1d9f66e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/writers/syslog_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ impl Write for SyslogConnector {
}
Self::Tcp(ref mut w) => {
// todo: reconnect if conn is broken
w.write(buf)
let n = w.write(buf)?;
Ok(w.write(b"\n")? + n)
}
Self::Udp(ref socket) => {
// ??
Expand Down

0 comments on commit 1d9f66e

Please sign in to comment.