From: Guido Günther Date: Mon, 21 Sep 2015 18:06:55 +0000 (+0200) Subject: Use daemon log facility for journald X-Git-Tag: v1.2.20-rc1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd00f0e6c75b00c3d97be8670afcd9094b823855;p=thirdparty%2Flibvirt.git 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 --- diff --git a/src/util/virlog.c b/src/util/virlog.c index b45ee919c2..627f4cb250 100644 --- a/src/util/virlog.c +++ b/src/util/virlog.c @@ -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);