From: Guus Sliepen Date: Fri, 2 Mar 2012 15:09:58 +0000 (+0100) Subject: Only log errors sending UDP packets when debug level >= 5. X-Git-Tag: import-tinc-1.1~392^2~1 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=63f8303a5dc1758876451a580a8317dbc3d295d6;p=meshlink Only log errors sending UDP packets when debug level >= 5. Since tinc will fall back to TCP or route via another node, it is not necessary to log such errors unconditionally. --- diff --git a/src/net_packet.c b/src/net_packet.c index 4b3496d3..e3a57b17 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -537,7 +537,7 @@ static void send_udppacket(node_t *n, vpn_packet_t *origpkt) { if(n->mtu >= origlen) n->mtu = origlen - 1; } else - logger(LOG_ERR, "Error sending packet to %s (%s): %s", n->name, n->hostname, sockstrerror(sockerrno)); + ifdebug(TRAFFIC) logger(LOG_WARNING, "Error sending packet to %s (%s): %s", n->name, n->hostname, sockstrerror(sockerrno)); } end: