add DEBUG_CATEGORY_CONNECTIVITY for handshake/protocol lifecycle logs
New category (id=25) replaces DEBUG_CATEGORY_DEBUG in chat_sync and chat_core. This allows enabling only protocol-level logs (SEND/RECV, timeouts, handshake) without the noise from DEBUG category. Changes: - debug_config.h: add CONNECTIVITY=25, COUNT→26 - debug_config.c: add 'connectivity' to g_debug_categories - chat_sync.c: DEBUG→CONNECTIVITY in all protocol logs - chat_core.c: DEBUG→CONNECTIVITY in connection/create logs - utun_node.cpp: remove hardcoded DEBUG=TRACE (now config-driven) - chatgui.cfg: connectivity=info in debug_categories
This commit is contained in:
1 parent
5318476cdf
commit
6bf267924d
5 files changed
+51
-50
No files matched your search
@@ -174,7 +174,6 @@ void UtunNode::runLoop() {
|
||||
/* chatgui defaults: suppress spam, verbose for our categories */
|
||||
g_debug_config.category_levels[DEBUG_CATEGORY_MEMORY] = DEBUG_LEVEL_DISABLED;
|
||||
g_debug_config.category_levels[DEBUG_CATEGORY_TIMING] = DEBUG_LEVEL_DISABLED;
|
||||
g_debug_config.category_levels[DEBUG_CATEGORY_DEBUG] = DEBUG_LEVEL_TRACE;
|
||||
g_debug_config.category_levels[DEBUG_CATEGORY_BGP] = DEBUG_LEVEL_INFO;
|
||||
|
||||
/* per-category overrides from config: cat=level,cat=level,... */
|
||||
|
||||
Reference in new issue
Block a user