diff --git a/exec/mainconfig.c b/exec/mainconfig.c index 31f99b73..eb5dd770 100644 --- a/exec/mainconfig.c +++ b/exec/mainconfig.c @@ -208,7 +208,7 @@ int openais_main_config_read ( logsys_logger.priority = LOG_LEVEL_DEBUG; } else if (strcmp (value, "off") == 0) { - logsys_logger.priority &= ~LOG_LEVEL_DEBUG; + logsys_logger.priority = LOG_LEVEL_INFO; } else { goto parse_error; } @@ -217,7 +217,13 @@ int openais_main_config_read ( if (global_debug) logsys_logger.priority = LOG_LEVEL_DEBUG; } - + if (logsys_logger.priority != LOG_LEVEL_DEBUG) { + if (!objdb_get_string (objdb, object_logger_subsys_handle, "syslog_level", &value)) { + logsys_logger.priority = logsys_priority_id_get(value); + if (logsys_logger.priority < 0) + logsys_logger.priority = LOG_LEVEL_INFO; + } + } if (!objdb_get_string (objdb, object_logger_subsys_handle, "tags", &value)) { char *token = strtok (value, "|"); diff --git a/man/openais.conf.5 b/man/openais.conf.5 index 560ae048..c3cd2cda 100644 --- a/man/openais.conf.5 +++ b/man/openais.conf.5 @@ -494,6 +494,13 @@ This specifies whether debug output is logged for this particular logger. The default is off. +.TP +syslog_level +This specifies the syslog level for this particular subsystem. Ignored if debug is on. +Possible values are: alert, crit, debug (same as debug = on), emerg, err, info, notice, warning. + +The default is: info. + .TP tags This specifies which tags should be traced for this particular logger.