Browse Source

Change supernode registration messages log to info

pull/100/head
emanuele-f 6 years ago
parent
commit
03dbedd52b
  1. 6
      edge_utils.c

6
edge_utils.c

@ -611,7 +611,7 @@ void update_supernode_reg(n2n_edge_t * eee, time_t nowTime) {
for(sn_idx=0; sn_idx<eee->sn_num; sn_idx++) { for(sn_idx=0; sn_idx<eee->sn_num; sn_idx++) {
supernode2addr(&(eee->supernode), eee->sn_ip_array[sn_idx]); supernode2addr(&(eee->supernode), eee->sn_ip_array[sn_idx]);
traceEvent(TRACE_NORMAL, "Registering with supernode [id: %u/%u][%s][attempts left %u]", traceEvent(TRACE_INFO, "Registering with supernode [id: %u/%u][%s][attempts left %u]",
sn_idx+1, eee->sn_num, sn_idx+1, eee->sn_num,
supernode_ip(eee), (unsigned int)eee->sup_attempts); supernode_ip(eee), (unsigned int)eee->sup_attempts);
@ -712,7 +712,7 @@ static int n2n_tick_transop(n2n_edge_t * eee, time_t now)
if(trop != eee->tx_transop_idx) if(trop != eee->tx_transop_idx)
{ {
eee->tx_transop_idx = trop; eee->tx_transop_idx = trop;
traceEvent(TRACE_NORMAL, "Chose new tx_transop_idx=%u", (unsigned int)(eee->tx_transop_idx)); traceEvent(TRACE_INFO, "Chose new tx_transop_idx=%u", (unsigned int)(eee->tx_transop_idx));
} }
return 0; return 0;
@ -1425,7 +1425,7 @@ static void readFromIPSocket(n2n_edge_t * eee, int in_sock) {
orig_sender = &(ra.sock); orig_sender = &(ra.sock);
} }
traceEvent(TRACE_NORMAL, "Rx REGISTER_SUPER_ACK myMAC=%s [%s] (external %s). Attempts %u", traceEvent(TRACE_INFO, "Rx REGISTER_SUPER_ACK myMAC=%s [%s] (external %s). Attempts %u",
macaddr_str(mac_buf1, ra.edgeMac), macaddr_str(mac_buf1, ra.edgeMac),
sock_to_cstr(sockbuf1, &sender), sock_to_cstr(sockbuf1, &sender),
sock_to_cstr(sockbuf2, orig_sender), sock_to_cstr(sockbuf2, orig_sender),

Loading…
Cancel
Save