Blame SOURCES/0025-Provide-SYSLOG_FACILITY-when-logging-through-journal.patch
|
|
27390d |
From 4168ca76abe568c7df898771eb65a484af264b9e Mon Sep 17 00:00:00 2001
|
|
|
27390d |
From: Richard Marko <rmarko@redhat.com>
|
|
|
27390d |
Date: Mon, 3 Feb 2014 14:47:21 +0100
|
|
|
27390d |
Subject: [LIBREPORT PATCH 25/25] Provide SYSLOG_FACILITY when logging through
|
|
|
27390d |
journal
|
|
|
27390d |
|
|
|
27390d |
Use SYSLOG_FACILITY=1 (user.notice) as a workaround
|
|
|
27390d |
for rhbz#1026804. This ensures forwarding to rsyslog
|
|
|
27390d |
works correctly.
|
|
|
27390d |
|
|
|
27390d |
Signed-off-by: Richard Marko <rmarko@redhat.com>
|
|
|
27390d |
|
|
|
27390d |
Closes rhbz#1063804
|
|
|
27390d |
|
|
|
27390d |
Signed-off-by: Jakub Filak <jfilak@redhat.com>
|
|
|
27390d |
---
|
|
|
27390d |
src/lib/logging.c | 1 +
|
|
|
27390d |
1 file changed, 1 insertion(+)
|
|
|
27390d |
|
|
|
27390d |
diff --git a/src/lib/logging.c b/src/lib/logging.c
|
|
|
27390d |
index afa480b..259a634 100644
|
|
|
27390d |
--- a/src/lib/logging.c
|
|
|
27390d |
+++ b/src/lib/logging.c
|
|
|
27390d |
@@ -143,6 +143,7 @@ static void log_handler(int level,
|
|
|
27390d |
"CODE_FILE=%s", file,
|
|
|
27390d |
"CODE_LINE=%d", line,
|
|
|
27390d |
"CODE_FUNC=%s", func,
|
|
|
27390d |
+ "SYSLOG_FACILITY=1",
|
|
|
27390d |
NULL);
|
|
|
27390d |
}
|
|
|
27390d |
}
|
|
|
27390d |
--
|
|
|
27390d |
1.8.3.1
|
|
|
27390d |
|