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
+1 -1
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++)