mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
Use daemon log facility for journald
otherwise messages end up in /var/log/kern.log if journald forwards to syslog. Reference: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=799633
This commit is contained in:
parent
1fb8ac4c79
commit
fd00f0e6c7
@ -920,6 +920,7 @@ virLogOutputToJournald(virLogSourcePtr source,
|
||||
journalAddString(&state, "MESSAGE", rawstr);
|
||||
journalAddInt(&state, "PRIORITY",
|
||||
virLogPrioritySyslog(priority));
|
||||
journalAddInt(&state, "SYSLOG_FACILITY", LOG_DAEMON);
|
||||
journalAddString(&state, "LIBVIRT_SOURCE", source->name);
|
||||
if (filename)
|
||||
journalAddString(&state, "CODE_FILE", filename);
|
||||
|
Loading…
Reference in New Issue
Block a user