[libvirt PATCH 2/2] util: set facility when opening syslog channel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux