]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Use daemon log facility for journald
authorGuido Günther <agx@sigxcpu.org>
Mon, 21 Sep 2015 18:06:55 +0000 (20:06 +0200)
committerCole Robinson <crobinso@redhat.com>
Wed, 23 Dec 2015 23:15:31 +0000 (18:15 -0500)
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)

src/util/virlog.c

index b45ee919c2639dfd8a914d1d2abc53f62ef1a00d..627f4cb2506dd261e69d6821b211ed8d91f2be5a 100644 (file)
@@ -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);