From e51a0599a0ee226865994749c5f95bfe70a1af49 Mon Sep 17 00:00:00 2001 From: dougal <147946567+roucc@users.noreply.github.com> Date: Fri, 9 Jan 2026 16:30:01 +0000 Subject: [PATCH] log: fix systemd adding extra newline - fixes #9086 This was broken in v1.71.0 as a typo. --- fs/log/systemd_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }