mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-04-01 20:05:19 +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 (cherry picked from commit fd00f0e6c75b00c3d97be8670afcd9094b823855)
This commit is contained in:
parent
64be645161
commit
5741803ceb
@ -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…
x
Reference in New Issue
Block a user