From: Guus Sliepen Date: Sun, 28 May 2017 10:26:44 +0000 (+0200) Subject: Move logging of "would block" messages to debug level 4. X-Git-Tag: release-1.1pre15~14 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=970799aa3406c22a575f665d3964c15d7c9ab555;p=tinc Move logging of "would block" messages to debug level 4. --- diff --git a/src/net_socket.c b/src/net_socket.c index a1934e9f..ba74195c 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -382,7 +382,7 @@ static void handle_meta_write(connection_t *c) { if(!sockerrno || sockerrno == EPIPE) { logger(DEBUG_CONNECTIONS, LOG_NOTICE, "Connection closed by %s (%s)", c->name, c->hostname); } else if(sockwouldblock(sockerrno)) { - logger(DEBUG_CONNECTIONS, LOG_DEBUG, "Sending %d bytes to %s (%s) would block", c->outbuf.len - c->outbuf.offset, c->name, c->hostname); + logger(DEBUG_META, LOG_DEBUG, "Sending %d bytes to %s (%s) would block", c->outbuf.len - c->outbuf.offset, c->name, c->hostname); return; } else { logger(DEBUG_CONNECTIONS, LOG_ERR, "Could not send %d bytes of data to %s (%s): %s", c->outbuf.len - c->outbuf.offset, c->name, c->hostname, sockstrerror(sockerrno));