Print regex type hints only in debug mode

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2023-01-28 13:34:09 +01:00
parent ffa4d338f1
commit 8b9e6c6c7e
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ static bool compile_regex(const char *regexin, const enum regex_type regexid, co
// Get next token
token = strtok_r(NULL, ",", &saveptr2);
}
if(regex[index].ext.query_type != 0)
if(regex[index].ext.query_type != 0 && config.debug & DEBUG_REGEX)
{
logg(" Hint: This regex matches only specific query types:");
for(int i = TYPE_A; i < TYPE_MAX; i++)