Only log UDP address changes at the appropriate debug levels.
authorGuus Sliepen <guus@tinc-vpn.org>
Tue, 21 Jun 2011 21:06:53 +0000 (23:06 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Tue, 21 Jun 2011 21:06:53 +0000 (23:06 +0200)
src/node.c

index 96b557a1b2cbb00b1705bfe8d36d420160e17e7c..7e6dd8e648b31f99231baee41ac201180aee20c1 100644 (file)
@@ -157,7 +157,7 @@ void update_node_udp(node_t *n, const sockaddr_t *sa) {
                n->address = *sa;
                n->hostname = sockaddr2hostname(&n->address);
                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 {
                memset(&n->address, 0, sizeof n->address);
                n->hostname = NULL;