mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-06 17:05:06 +00:00
Allow syslog priority configurations per subsystem in logsys.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1568 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
81d5565256
commit
89bd6e3a57
@ -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, "|");
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user