]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/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)
committerGuido Günther <agx@sigxcpu.org>
Fri, 25 Sep 2015 14:22:39 +0000 (16:22 +0200)
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

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);