From: Guus Sliepen Date: Tue, 21 Jun 2011 21:06:53 +0000 (+0200) Subject: Only log UDP address changes at the appropriate debug levels. X-Git-Tag: release-1.1pre1~9 X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=532557beeaa60d96ac423248ff62d2cc03205c22 Only log UDP address changes at the appropriate debug levels. --- diff --git a/src/node.c b/src/node.c index 96b557a1..7e6dd8e6 100644 --- a/src/node.c +++ b/src/node.c @@ -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;