From 655687eb004af52cbb93b9298760dea2d8954b9c Mon Sep 17 00:00:00 2001 From: Andrew Walker Date: Tue, 24 Dec 2024 09:57:41 -0600 Subject: [PATCH] Fix mako formatting of syslog-ng message template (#15267) The mako template was inserting a new line instead of a literal newline character. This apparently accidentally works in the syslog-ng configuration, but looks bad. --- .../middlewared/etc_files/syslog-ng/syslog-ng.conf.mako | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middlewared/middlewared/etc_files/syslog-ng/syslog-ng.conf.mako b/src/middlewared/middlewared/etc_files/syslog-ng/syslog-ng.conf.mako index f0474c4b7b637..0c6b56d625456 100644 --- a/src/middlewared/middlewared/etc_files/syslog-ng/syslog-ng.conf.mako +++ b/src/middlewared/middlewared/etc_files/syslog-ng/syslog-ng.conf.mako @@ -5,7 +5,7 @@ logger = middleware.logger # The messages coming in via middleware are already formatted by logger # and so we don't want to do additional formatting. -syslog_template = 'template("${MESSAGE}\n")' +syslog_template = 'template("${MESSAGE}\\n")' def generate_syslog_remote_destination(advanced_config):