mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
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:
@@ -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;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user