mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
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 <jtomko@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
017fa1e097
commit
ab96031943
@ -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 */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user