From 85d1109b8b2e64ed61f4447b00639d57930184e4 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 24 Nov 2008 14:41:36 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_pool.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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; -- 2.39.5