From 5e503ffd61eff1067d58f0b25f1e48dcddf9a0a2 Mon Sep 17 00:00:00 2001 From: Vladimír Čunát Date: Tue, 1 Oct 2024 15:08:13 +0200 Subject: lib/log: add [defer ] group In particular this turns off those debug logs by default. --- lib/log.c | 1 + lib/log.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'lib') 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 */ ///@} -- cgit v1.2.3