fix type
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5086 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
bf6a88e818
commit
7409a6c975
|
@ -399,16 +399,16 @@ static void log_function(switch_core_session_t *session, char *data)
|
|||
assert(channel != NULL);
|
||||
|
||||
if (data && (level = strdup(data))) {
|
||||
switch_log_level_t etype = SWITCH_LOG_DEBUG;
|
||||
switch_log_level_t ltype = SWITCH_LOG_DEBUG;
|
||||
|
||||
if ((log_str = strchr(level, ' '))) {
|
||||
*log_str++ = '\0';
|
||||
switch_name_event(level, &etype);
|
||||
ltype = switch_log_str2level(level);
|
||||
} else {
|
||||
log_str = level;
|
||||
}
|
||||
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, etype, "%s\n", log_str);
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, ltype, "%s\n", log_str);
|
||||
switch_safe_free(level);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue