From: phk Date: Mon, 24 Nov 2008 14:41:36 +0000 (+0000) Subject: Only emit debug message for writes that fail X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85d1109b8b2e64ed61f4447b00639d57930184e4;p=varnish Only emit debug message for writes that fail git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3427 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_pool.c b/varnish-cache/bin/varnishd/cache_pool.c index 81376a12..d4617658 100644 --- a/varnish-cache/bin/varnishd/cache_pool.c +++ b/varnish-cache/bin/varnishd/cache_pool.c @@ -124,11 +124,12 @@ WRK_Flush(struct worker *w) CHECK_OBJ_NOTNULL(w, WORKER_MAGIC); if (*w->wfd >= 0 && w->niov > 0 && w->werr == 0) { i = writev(*w->wfd, w->iov, w->niov); - if (i != w->liov) + if (i != w->liov) { w->werr++; - WSL(w, SLT_Debug, *w->wfd, - "Write error, len = %d/%d, errno = %s", - i, w->liov, strerror(errno)); + WSL(w, SLT_Debug, *w->wfd, + "Write error, len = %d/%d, errno = %s", + i, w->liov, strerror(errno)); + } } w->liov = 0; w->niov = 0;