projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60ed7fe
)
Only log UDP address changes at the appropriate debug levels.
author
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 21 Jun 2011 21:06:53 +0000
(23:06 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 21 Jun 2011 21:06:53 +0000
(23:06 +0200)
src/node.c
patch
|
blob
|
history
diff --git
a/src/node.c
b/src/node.c
index
96b557a
..
7e6dd8e
100644
(file)
--- 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;