debug: Make the global target loglevel overwrite the category level

Together with the previos -e Number option one can easily turn on
debugging without needing to remember the category masks for a quick
check on what is going on.
This commit is contained in:
Holger Hans Peter Freyther
2010-03-25 02:57:03 +01:00
parent 009ad61dab
commit bb7bc1155f

View File

@@ -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;
/*