[libvirt PATCH 2/2] util: set facility when opening syslog channel
Daniel P. Berrangé
berrange at redhat.com
Tue Jan 18 16:49:01 UTC 2022
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.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
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 */
--
2.33.1
More information about the libvir-list
mailing list