[Pkg-libvirt-commits] [libvirt] 02/02: Use daemon log facility for journald

Guido Guenther agx at moszumanska.debian.org
Tue Sep 22 17:14:30 UTC 2015


This is an automated email from the git hooks/post-receive script.

agx pushed a commit to branch debian/sid
in repository libvirt.

commit 96ec9e50cc6fbea661fa32320ef7185607a2b724
Author: Guido Günther <agx at sigxcpu.org>
Date:   Tue Sep 22 14:18:29 2015 +0200

    Use daemon log facility for journald
    
    Closes: #799633
---
 .../Use-daemon-log-facility-for-journald.patch     | 24 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 25 insertions(+)

diff --git a/debian/patches/Use-daemon-log-facility-for-journald.patch b/debian/patches/Use-daemon-log-facility-for-journald.patch
new file mode 100644
index 0000000..a73a991
--- /dev/null
+++ b/debian/patches/Use-daemon-log-facility-for-journald.patch
@@ -0,0 +1,24 @@
+From: =?utf-8?q?Guido_G=C3=BCnther?= <agx at sigxcpu.org>
+Date: Mon, 21 Sep 2015 20:06:55 +0200
+Subject: Use daemon log facility for journald
+
+otherwise messages end up in /var/log/kern.log if journald forwards to
+syslog.
+
+Closes: #799633
+---
+ src/util/virlog.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/util/virlog.c b/src/util/virlog.c
+index b45ee91..627f4cb 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);
diff --git a/debian/patches/series b/debian/patches/series
index a1b31c3..1cd8d85 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -13,3 +13,4 @@ debian/Use-upstreams-polkit-rule.patch
 Allow-access-to-libnl-3-config-files.patch
 debian/apparmor_profiles_local_include.patch
 debian/libsystemd.patch
+Use-daemon-log-facility-for-journald.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libvirt.git



More information about the Pkg-libvirt-commits mailing list