]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: set facility when opening syslog channel
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 18 Jan 2022 16:48:00 +0000 (16:48 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 19 Jan 2022 15:32:54 +0000 (15:32 +0000)
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 <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/util/virlog.c

index 72b0613dfb67dea568f3c8231f2abf6ad2315bf5..443e9489173151ad5de4e59ffc89c0a7d9f8e0f8 100644 (file)
@@ -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 */