mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05: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 fd00f0e6c7)
This commit is contained in:
1 parent
64be645161
commit
5741803ceb
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user