From 8b9e6c6c7e904bf4e2ee06719411946be3015b9e Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sat, 28 Jan 2023 13:34:09 +0100 Subject: [PATCH] Print regex type hints only in debug mode Signed-off-by: DL6ER --- src/regex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/regex.c b/src/regex.c index 4388ff85..ad0f5ea4 100644 --- a/src/regex.c +++ b/src/regex.c @@ -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++)