From 90410a00e9b48aeac149279de473bf5a6b0a0ac7 Mon Sep 17 00:00:00 2001
From: winckel <winckel@eurecom.fr>
Date: Thu, 12 Dec 2013 12:50:15 +0000
Subject: [PATCH] Modified log level handling; log is done if: - level >=
 c->level        or - level >= g_log->level

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4690 818b1a75-f10b-46b9-bf7c-635c3b92a50f
---
 openair2/UTIL/LOG/log.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/openair2/UTIL/LOG/log.c b/openair2/UTIL/LOG/log.c
index f9052633a9..13784417fd 100755
--- a/openair2/UTIL/LOG/log.c
+++ b/openair2/UTIL/LOG/log.c
@@ -611,8 +611,7 @@ void logRecord_mt(const char *file, const char *func, int line, int comp,
 
     // do not apply filtering for LOG_F
     // only log messages which are enabled and are below the global log level and component's level threshold
-    if ((level != LOG_FILE) && ((c->level > g_log->level) || (level > c->level)
-                                || (level > g_log->level))) {
+    if ((level != LOG_FILE) && ((level > c->level) && (level > g_log->level))) {
         return;
     }
 
-- 
GitLab