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