mirror of
https://github.com/rclone/rclone.git
synced 2026-01-11 04:53:15 +00:00
log: fix systemd adding extra newline - fixes #9086
This was broken in v1.71.0 as a typo.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user