From: Daniel P. Berrangé Date: Tue, 18 Jan 2022 16:48:00 +0000 (+0000) Subject: util: set facility when opening syslog channel X-Git-Tag: v8.1.0-rc1~374 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab96031943d494010166875f399656a6c13aadf5;p=thirdparty%2Flibvirt.git util: set facility when opening syslog channel 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é --- 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 */