Blame SOURCES/bz1434534-1-Logsys-Change-logsys-syslog_priority-priority.patch

3062ca
From 609cc0cc100aa1070d97b405273373682da0e270 Mon Sep 17 00:00:00 2001
3062ca
From: Jan Friesse <jfriesse@redhat.com>
3062ca
Date: Fri, 24 Feb 2017 16:23:50 +0100
3062ca
Subject: [PATCH] Logsys: Change logsys syslog_priority priority
3062ca
3062ca
LibQB adds default "*" syslog filter so we have to set syslog_priority
3062ca
as low as possible so filters applied later in
3062ca
_logsys_config_apply_per_file takes effect.
3062ca
3062ca
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
3062ca
(cherry picked from commit 8b6bd86a55b8bda9f3a8ff67bdff908263976fa3)
3062ca
---
3062ca
 exec/main.c |    7 ++++++-
3062ca
 1 files changed, 6 insertions(+), 1 deletions(-)
3062ca
3062ca
diff --git a/exec/main.c b/exec/main.c
3062ca
index ca54a47..5126af5 100644
3062ca
--- a/exec/main.c
3062ca
+++ b/exec/main.c
3062ca
@@ -128,10 +128,15 @@
3062ca
 #define IPC_LOGSYS_SIZE			8192*128
3062ca
 #endif
3062ca
 
3062ca
+/*
3062ca
+ * LibQB adds default "*" syslog filter so we have to set syslog_priority as low
3062ca
+ * as possible so filters applied later in _logsys_config_apply_per_file takes
3062ca
+ * effect.
3062ca
+ */
3062ca
 LOGSYS_DECLARE_SYSTEM ("corosync",
3062ca
 	LOGSYS_MODE_OUTPUT_STDERR | LOGSYS_MODE_OUTPUT_SYSLOG,
3062ca
 	LOG_DAEMON,
3062ca
-	LOG_INFO);
3062ca
+	LOG_EMERG);
3062ca
 
3062ca
 LOGSYS_DECLARE_SUBSYS ("MAIN");
3062ca
 
3062ca
-- 
3062ca
1.7.1
3062ca