Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
corosync.6022
change-default-log-priority.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor