logging: move socket mechanics and periodic probe decisions to trace
This commit is contained in:
1 parent
15d460ee7c
commit
7eb6d6ee68
3 files changed
+11
-8
No files matched your search
@@ -192,7 +192,9 @@ void cm_candidate_ping_timer_cb(void* arg) {
|
||||
struct TOPO_NODE* ni = topo_node_registry_find(mgr->instance->topo_groups, nq->node_id);
|
||||
/* пир в SLEEP-фазе — прямое соединение живо, пинг будит его: пропускаем */
|
||||
if (ni && !dc->peer_sleep_phase) {
|
||||
DEBUG_DEBUG(DEBUG_CATEGORY_BGP,"candidate probe: direct peer=%016llx link=%u",(unsigned long long)nid,link->local_link_id);
|
||||
DEBUG_TRACE(DEBUG_CATEGORY_BGP, "candidate probe: group=%016llx peer=%016llx link=%u transport=%s",
|
||||
(unsigned long long)mgr->group->group_id, (unsigned long long)nid, link->local_link_id,
|
||||
link->is_tcp ? "TCP" : "UDP");
|
||||
if (link->is_tcp) {
|
||||
struct stcp_client** slot = NULL;
|
||||
for (uint8_t i = 0; i < CONN_MGR_MAX_CANDIDATES; i++)
|
||||
|
||||
@@ -678,11 +678,11 @@ int topo_node_ping_request_cbk(struct TOPO_GROUPS* groups, uint64_t node_id) {
|
||||
if (nq) {
|
||||
struct TOPO_CONNECTIVITY* c = &nq->connectivity;
|
||||
if (c->last_ping_time == 0 || (now - c->last_ping_time) > PING_TTL_TB) {
|
||||
DEBUG_DEBUG(DEBUG_CATEGORY_BGP, "ping_request_cbk: node=%016llx last_ping=%llu now=%llu stale=1",
|
||||
DEBUG_TRACE(DEBUG_CATEGORY_BGP, "ping_request_cbk: node=%016llx last_ping=%llu now=%llu stale=1",
|
||||
(unsigned long long)node_id, (unsigned long long)c->last_ping_time, (unsigned long long)now);
|
||||
return 1;
|
||||
}
|
||||
DEBUG_DEBUG(DEBUG_CATEGORY_BGP, "ping_request_cbk: node=%016llx last_ping=%llu now=%llu stale=0",
|
||||
DEBUG_TRACE(DEBUG_CATEGORY_BGP, "ping_request_cbk: node=%016llx last_ping=%llu now=%llu stale=0",
|
||||
(unsigned long long)node_id, (unsigned long long)c->last_ping_time, (unsigned long long)now);
|
||||
}
|
||||
ge = ge->next;
|
||||
|
||||
Reference in new issue
Block a user