mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Print regex type hints only in debug mode
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
+1
-1
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user