From ab96031943d494010166875f399656a6c13aadf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Tue, 18 Jan 2022 16:48:00 +0000 Subject: [PATCH] util: set facility when opening syslog channel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We're currently passing '0' which leaves the syslog facility unset. Since we're passing an explicit facility for syslog when using journald, it makes sense to be explicit when using syslog directly too. Reviewed-by: Ján Tomko Signed-off-by: Daniel P. Berrangé --- src/util/virlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/virlog.c b/src/util/virlog.c index 72b0613dfb..443e948917 100644 --- a/src/util/virlog.c +++ b/src/util/virlog.c @@ -1412,7 +1412,7 @@ virLogDefineOutputs(virLogOutput **outputs, size_t noutputs) tmp = g_strdup(outputs[id]->name); VIR_FREE(current_ident); current_ident = tmp; - openlog(current_ident, 0, 0); + openlog(current_ident, 0, LOG_DAEMON); } #endif /* WITH_SYSLOG_H */