Skip to content

Commit e51a059

Browse files
authored
log: fix systemd adding extra newline - fixes rclone#9086
This was broken in v1.71.0 as a typo.
1 parent 530a901 commit e51a059

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/log/systemd_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func startSystemdLog(handler *OutputHandler) bool {
1616
handler.clearFormatFlags(logFormatDate | logFormatTime | logFormatMicroseconds | logFormatUTC | logFormatLongFile | logFormatShortFile | logFormatPid)
1717
handler.setFormatFlags(logFormatNoLevel)
1818
handler.SetOutput(func(level slog.Level, text string) {
19-
_ = journal.Print(slogLevelToSystemdPriority(level), "%-6s: %s\n", level, text)
19+
_ = journal.Print(slogLevelToSystemdPriority(level), "%-6s: %s", level, text)
2020
})
2121
return true
2222
}

0 commit comments

Comments
 (0)