From: phk Date: Mon, 24 Nov 2008 13:03:41 +0000 (+0000) Subject: Log write errors under SLT_Debug. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=105c1b40cac367e025d1361a335b467e4ed6db5d;p=varnish Log write errors under SLT_Debug. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3425 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_pool.c b/varnish-cache/bin/varnishd/cache_pool.c index 59973fd4..81376a12 100644 --- a/varnish-cache/bin/varnishd/cache_pool.c +++ b/varnish-cache/bin/varnishd/cache_pool.c @@ -126,6 +126,9 @@ WRK_Flush(struct worker *w) i = writev(*w->wfd, w->iov, w->niov); if (i != w->liov) w->werr++; + WSL(w, SLT_Debug, *w->wfd, + "Write error, len = %d/%d, errno = %s", + i, w->liov, strerror(errno)); } w->liov = 0; w->niov = 0;