Browse Source

Deliver exact socket-error within the debug error message

Matthias Strubel 12 years ago
parent
commit
e6f52f3359
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util.c

+ 1 - 1
util.c

@@ -1376,7 +1376,7 @@ char *recv_line(struct pool *pool)
 			}
 			}
 			if (n < 0) {
 			if (n < 0) {
 				if (!sock_blocks() || !socket_full(pool, false)) {
 				if (!sock_blocks() || !socket_full(pool, false)) {
-					applog(LOG_DEBUG, "Failed to recv sock in recv_line");
+					applog(LOG_DEBUG, "Failed to recv sock in recv_line: %d", errno);
 					break;
 					break;
 				}
 				}
 			} else {
 			} else {