summaryrefslogtreecommitdiff
path: root/internal/io
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2022-02-15 12:22:00 +0000
committerPaul Buetow <pbuetow@mimecast.com>2022-02-15 12:22:00 +0000
commit37fe6052586cdeecd5975cf2b83b8b1109109817 (patch)
treec5dceab08f2a37b8b9b7d0a17cbc2900656256d9 /internal/io
parent267d7a92a31b01ef5dfdfd5a85bfa1243b40d989 (diff)
minor fix, add missing newlines to server messages
Diffstat (limited to 'internal/io')
-rw-r--r--internal/io/fs/readfile.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/io/fs/readfile.go b/internal/io/fs/readfile.go
index 90c5966..669f99f 100644
--- a/internal/io/fs/readfile.go
+++ b/internal/io/fs/readfile.go
@@ -321,7 +321,7 @@ func (f *readFile) handleReadByte(ctx context.Context, b byte,
if message.Len() >= config.Server.MaxLineLength {
if !f.warnedAboutLongLine {
f.serverMessages <- dlog.Common.Warn(f.filePath,
- "Long log line, splitting into multiple lines")
+ "Long log line, splitting into multiple lines") + "\n"
f.warnedAboutLongLine = true
}
message.WriteByte('\n')