]> err.no Git - varnish/commitdiff
Log write errors under SLT_Debug.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 24 Nov 2008 13:03:41 +0000 (13:03 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 24 Nov 2008 13:03:41 +0000 (13:03 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3425 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_pool.c

index 59973fd47b0cb5f6486b3b2ecae95331bdcea51f..81376a124fad1e5151c91e64e543de39100ee6db 100644 (file)
@@ -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;