Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

log: fix systemd adding extra newline - fixes #9086

dougale51a0599a0ee
diff --git a/fs/log/systemd_unix.go b/fs/log/systemd_unix.go
index fa29b203c..8ea34f1e8 100644
--- a/fs/log/systemd_unix.go
+++ b/fs/log/systemd_unix.go
@@ -16,7 +16,7 @@ func startSystemdLog(handler *OutputHandler) bool {
handler.clearFormatFlags(logFormatDate | logFormatTime | logFormatMicroseconds | logFormatUTC | logFormatLongFile | logFormatShortFile | logFormatPid)
handler.setFormatFlags(logFormatNoLevel)
handler.SetOutput(func(level slog.Level, text string) {
- _ = journal.Print(slogLevelToSystemdPriority(level), "%-6s: %s\n", level, text)
+ _ = journal.Print(slogLevelToSystemdPriority(level), "%-6s: %s", level, text)
})
return true
}