Move logging of "would block" messages to debug level 4.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 28 May 2017 10:26:44 +0000 (12:26 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 28 May 2017 10:26:44 +0000 (12:26 +0200)
src/net_socket.c

index a1934e9f7320fd05cc0c7b95fd0362e6dc6900ec..ba74195c687adce7d24b85439b82d696c244b759 100644 (file)
@@ -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));