File change-default-log-priority.patch of Package corosync.6022

--- corosync-2.3.5.orig/exec/logconfig.c	2015-06-22 22:03:28.000000000 +0800
+++ corosync-2.3.5/exec/logconfig.c	2017-03-10 15:08:48.679123338 +0800
@@ -376,7 +376,13 @@
 			error_reason = "unable to set syslog priority";
 			goto parse_error;
 		}
-	}
+	} else if (strcmp(key_name,"logging.syslog_priority") == 0) {
+        /*By default, we set syslog_priority to LOG_INFO*/
+        if(logsys_config_syslog_priority_set(subsys, LOG_INFO) < 0) {
+            error_reason = "unable to set syslog priority";
+            goto parse_error;
+        }
+    }
 
 #ifdef LOGCONFIG_USE_ICMAP
 	snprintf(key_name, MAP_KEYNAME_MAXLEN, "%s.%s", path, "logfile");
@@ -417,7 +423,14 @@
 			error_reason = "unable to set logfile priority";
 			goto parse_error;
 		}
-	}
+	} else if (strcmp(key_name, "logging.logfile_priority") == 0) {
+        /*By default, we set logfile_priority to LOG_INFO*/
+        if(logsys_config_logfile_priority_set(subsys, LOG_INFO) < 0) {
+            error_reason = "unable to set logfile priority";
+            goto parse_error;
+        }
+    }
+
 
 	snprintf(key_name, MAP_KEYNAME_MAXLEN, "%s.%s", path, "debug");
 	if (map_get_string(key_name, &value) == CS_OK) {
openSUSE Build Service is sponsored by