]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 18 Apr 2006 00:45:16 +0000 (00:45 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 18 Apr 2006 00:45:16 +0000 (00:45 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1182 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_log.c

index d763c6cbe6fa512fcc7bf499bfa784d18a255119..d7f123bdd44dabb95ebf370c4268bc0892071f22 100644 (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);