From 532557beeaa60d96ac423248ff62d2cc03205c22 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 21 Jun 2011 23:06:53 +0200 Subject: [PATCH] Only log UDP address changes at the appropriate debug levels. --- src/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5