aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openbsc/src/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/debug.c b/openbsc/src/debug.c
index 3bb5309a6..8f7a1c303 100644
--- a/openbsc/src/debug.c
+++ b/openbsc/src/debug.c
@@ -242,7 +242,7 @@ static void _debugp(unsigned int subsys, int level, char *file, int line,
continue;
/* Check the category log level */
- if (category->loglevel != 0 && level < category->loglevel)
+ if (tar->loglevel == 0 && category->loglevel != 0 && level < category->loglevel)
continue;
/*