Browse Source

logging: preserve system diagnostics and inherit Android debug level

master
evgeny 5 days ago
parent
commit
653853588a
  1. 2
      src/routing_layer/topo_group.c
  2. 1
      tools/chatgui-android/libutun_lite/instance_lite.c
  3. 4
      tools/chatgui/transport/utun_node.cpp

2
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)

1
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);

4
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,... */

Loading…
Cancel
Save