From 653853588ab58dbef46c94967196567aefc5fa70 Mon Sep 17 00:00:00 2001 From: evgeny Date: Wed, 7 Oct 2026 21:21:33 +0200 Subject: [PATCH] logging: preserve system diagnostics and inherit Android debug level --- src/routing_layer/topo_group.c | 2 +- tools/chatgui-android/libutun_lite/instance_lite.c | 1 - tools/chatgui/transport/utun_node.cpp | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/routing_layer/topo_group.c b/src/routing_layer/topo_group.c index bc8155ef..f0634841 100644 --- a/src/routing_layer/topo_group.c +++ b/src/routing_layer/topo_group.c @@ -104,7 +104,7 @@ static void topo_group_notify_ready(struct TOPO_GROUP_CONN_ITEM* peer, int ready "links_up=%u transport_down=%u accepted=%u table_sent=%u table_received=%u send_failed=%u", ready ? "READY (group exchange complete)" : "NOT READY (group session unavailable)", (unsigned long long)peer->group->group_id, (unsigned long long)peer->node_id, - (unsigned long long)peer->local_epoch, (unsigned long long)peer->remote_epoch, + (unsigned long long)peer->local_epoch, (unsigned long long)peer->peer_epoch, peer->conn ? peer->conn->links_up : 0, peer->transport_down, peer->accepted, peer->table_sent, peer->table_received, peer->tx_failed); for (struct topo_peer_ready_cbk* cb = peer->group->peer_ready_cbks; cb; cb = cb->next) diff --git a/tools/chatgui-android/libutun_lite/instance_lite.c b/tools/chatgui-android/libutun_lite/instance_lite.c index ac8a94cb..8a262ead 100644 --- a/tools/chatgui-android/libutun_lite/instance_lite.c +++ b/tools/chatgui-android/libutun_lite/instance_lite.c @@ -462,7 +462,6 @@ int instance_lite_start(const char* config_text) { debug_set_category_level(DEBUG_CATEGORY_SYS, DEBUG_LEVEL_INFO); debug_set_category_level(DEBUG_CATEGORY_CHAT_SYNC, DEBUG_LEVEL_INFO); debug_set_category_level(DEBUG_CATEGORY_MEMBER_SYNC, DEBUG_LEVEL_INFO); - debug_set_category_level(DEBUG_CATEGORY_DEBUG, DEBUG_LEVEL_DEBUG); debug_set_category_level(DEBUG_CATEGORY_ETCP, DEBUG_LEVEL_INFO); debug_set_category_level(DEBUG_CATEGORY_DUMP, DEBUG_LEVEL_WARN); debug_enable_function_name(0); diff --git a/tools/chatgui/transport/utun_node.cpp b/tools/chatgui/transport/utun_node.cpp index d56bd19a..68348cc6 100644 --- a/tools/chatgui/transport/utun_node.cpp +++ b/tools/chatgui/transport/utun_node.cpp @@ -142,8 +142,8 @@ void UtunNode::runLoop() { g_debug_config.level = DEBUG_LEVEL_INFO; } - /* chatgui defaults: suppress spam, verbose for our categories */ - g_debug_config.category_levels[DEBUG_CATEGORY_SYS] = DEBUG_LEVEL_DISABLED; + /* Системные ошибки и жизненный цикл ядра должны быть видны без специальной настройки. */ + g_debug_config.category_levels[DEBUG_CATEGORY_SYS] = DEBUG_LEVEL_INFO; g_debug_config.category_levels[DEBUG_CATEGORY_BGP] = DEBUG_LEVEL_INFO; /* per-category overrides from config: cat=level,cat=level,... */