mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 05:18:31 +00:00
if plus a space
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9855 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
16b65a8f22
commit
d0688264c6
10 files changed
+22
-21
No files matched your search
@@ -99,7 +99,7 @@ static switch_status_t mod_syslog_logger(const switch_log_node_t *node, switch_l
|
||||
}
|
||||
|
||||
/* don't log blank lines */
|
||||
if(!switch_strlen_zero(node->data) && (strspn(node->data, " \t\r\n") < strlen(node->data))) {
|
||||
if (!switch_strlen_zero(node->data) && (strspn(node->data, " \t\r\n") < strlen(node->data))) {
|
||||
syslog(syslog_level, "%s", node->data);
|
||||
}
|
||||
|
||||
@@ -128,8 +128,7 @@ static switch_status_t load_config(void)
|
||||
set_global_format(val);
|
||||
} else if (!strcasecmp(var, "loglevel") && !switch_strlen_zero(val)) {
|
||||
log_level = switch_log_str2level(val);
|
||||
if(log_level == SWITCH_LOG_INVALID)
|
||||
{
|
||||
if (log_level == SWITCH_LOG_INVALID) {
|
||||
log_level = SWITCH_LOG_WARNING;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user