Only log UDP address changes at the appropriate debug levels.
This commit is contained in:
parent
60ed7fe598
commit
532557beea
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ void update_node_udp(node_t *n, const sockaddr_t *sa) {
|
||||||
n->address = *sa;
|
n->address = *sa;
|
||||||
n->hostname = sockaddr2hostname(&n->address);
|
n->hostname = sockaddr2hostname(&n->address);
|
||||||
splay_insert(node_udp_tree, n);
|
splay_insert(node_udp_tree, n);
|
||||||
logger(LOG_DEBUG, "UDP address of %s set to %s", n->name, n->hostname);
|
ifdebug(PROTOCOL) logger(LOG_DEBUG, "UDP address of %s set to %s", n->name, n->hostname);
|
||||||
} else {
|
} else {
|
||||||
memset(&n->address, 0, sizeof n->address);
|
memset(&n->address, 0, sizeof n->address);
|
||||||
n->hostname = NULL;
|
n->hostname = NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue