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
@@ -129,6 +129,7 @@ static const struct {
|
||||
{"etcp_route", DEBUG_CATEGORY_ETCPROUTE},
|
||||
{"bbr", DEBUG_CATEGORY_BBR},
|
||||
{"etcp_dump", DEBUG_CATEGORY_ETCP_DUMP},
|
||||
{"connectivity", DEBUG_CATEGORY_CONNECTIVITY},
|
||||
{"all", DEBUG_CATEGORY_ALL},
|
||||
{NULL, DEBUG_CATEGORY_NONE}
|
||||
};
|
||||
|
||||
+2
-1
@@ -63,7 +63,8 @@ typedef int debug_category_t;
|
||||
#define DEBUG_CATEGORY_ETCPROUTE 22 // ETCP routing
|
||||
#define DEBUG_CATEGORY_BBR 23 // BBR congestion control
|
||||
#define DEBUG_CATEGORY_ETCP_DUMP 24 // ETCP packet dump
|
||||
#define DEBUG_CATEGORY_COUNT 25 // Total number of categories
|
||||
#define DEBUG_CATEGORY_CONNECTIVITY 25 // Connection/handshake lifecycle
|
||||
#define DEBUG_CATEGORY_COUNT 26 // Total number of categories
|
||||
#define DEBUG_CATEGORY_ALL (-1) // special value for all categories
|
||||
|
||||
/* Debug configuration structure */
|
||||
|
||||
Reference in new issue
Block a user