summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVladimír Čunát <vladimir.cunat@nic.cz>2024-10-01 15:08:13 +0200
committerVladimír Čunát <vladimir.cunat@nic.cz>2024-10-01 15:09:08 +0200
commit5e503ffd61eff1067d58f0b25f1e48dcddf9a0a2 (patch)
tree2c2ebc908073aa8165e18b4c521bad25385690ed /lib
parentfixup! Merge branch 'master' into rrl-wip (diff)
downloadknot-resolver-5e503ffd61eff1067d58f0b25f1e48dcddf9a0a2.tar.xz
knot-resolver-5e503ffd61eff1067d58f0b25f1e48dcddf9a0a2.zip
lib/log: add [defer ] group
In particular this turns off those debug logs by default.
Diffstat (limited to 'lib')
-rw-r--r--lib/log.c1
-rw-r--r--lib/log.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/log.c b/lib/log.c
index f4244918..e1f4d543 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -80,6 +80,7 @@ const log_group_names_t log_group_names[] = {
GRP_NAME_ITEM(LOG_GRP_EDE),
GRP_NAME_ITEM(LOG_GRP_RULES),
GRP_NAME_ITEM(LOG_GRP_PROTOLAYER),
+ GRP_NAME_ITEM(LOG_GRP_DEFER),
GRP_NAME_ITEM(LOG_GRP_REQDBG),
{ NULL, LOG_GRP_UNKNOWN },
};
diff --git a/lib/log.h b/lib/log.h
index d3bc9145..30fc2937 100644
--- a/lib/log.h
+++ b/lib/log.h
@@ -81,6 +81,7 @@ enum kr_log_group {
LOG_GRP_EDE,
LOG_GRP_RULES,
LOG_GRP_PROTOLAYER,
+ LOG_GRP_DEFER,
/* ^^ Add new log groups above ^^. */
LOG_GRP_REQDBG, /* Must be first non-displayed entry in enum! */
};
@@ -135,6 +136,7 @@ enum kr_log_group {
#define LOG_GRP_EDE_TAG "exterr" /**< ``exterr``: extended error module */
#define LOG_GRP_RULES_TAG "rules" /**< ``rules``: new policy rules (their processing) */
#define LOG_GRP_PROTOLAYER_TAG "prlayr" /**< ``prlayr``: protocol layer system (session2) */
+#define LOG_GRP_DEFER_TAG "defer" /**< ``defer``: prioritization of requests */
#define LOG_GRP_REQDBG_TAG "reqdbg" /**< ``reqdbg``: debug logs enabled by policy actions */
///@}