From 105c1b40cac367e025d1361a335b467e4ed6db5d Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 24 Nov 2008 13:03:41 +0000 Subject: [PATCH] Log write errors under SLT_Debug. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3425 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_pool.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5