git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1182 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2006-04-18 00:45:16 +00:00
parent 021ea0e724
commit 1f3dedbf2d

View File

@ -132,7 +132,7 @@ static void *SWITCH_THREAD_FUNC log_thread(switch_thread *thread, void *obj)
}
node = (switch_log_node *) pop;
switch_mutex_lock(BINDLOCK);
for(binding = BINDINGS; binding; binding = binding->next) {
if (binding->level >= node->level) {
@ -224,7 +224,8 @@ SWITCH_DECLARE(void) switch_log_printf(switch_text_channel channel, char *file,
if (level == SWITCH_LOG_CONSOLE || !THREAD_RUNNING) {
fprintf(handle, data);
}
if (level >= MAX_LEVEL) {
if (level <= MAX_LEVEL) {
switch_log_node *node = malloc(sizeof(*node));
node->data = data;
node->file = strdup(filep);