1
0
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:
dougal
2026-01-09 16:30:01 +00:00
committed by GitHub
parent 530a901de3
commit e51a0599a0

View File

@@ -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
}