Commit aab5dda6 authored by Nils Goroll's avatar Nils Goroll

more details to fetcherror

Ref #2622
parent b40aa2ce
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "config.h" #include "config.h"
#include <stdlib.h> #include <stdlib.h>
#include <errno.h>
#include "cache_varnishd.h" #include "cache_varnishd.h"
...@@ -116,7 +117,8 @@ vbe_dir_getfd(struct worker *wrk, struct backend *bp, struct busyobj *bo, ...@@ -116,7 +117,8 @@ vbe_dir_getfd(struct worker *wrk, struct backend *bp, struct busyobj *bo,
pfd = VTP_Get(bp->tcp_pool, tmod, wrk, force_fresh); pfd = VTP_Get(bp->tcp_pool, tmod, wrk, force_fresh);
if (pfd == NULL) { if (pfd == NULL) {
VSLb(bo->vsl, SLT_FetchError, VSLb(bo->vsl, SLT_FetchError,
"backend %s: fail", bp->director->display_name); "backend %s: fail errno %d (%s)",
bp->director->display_name, errno, strerror(errno));
// XXX: Per backend stats ? // XXX: Per backend stats ?
VSC_C_main->backend_fail++; VSC_C_main->backend_fail++;
bo->htc = NULL; bo->htc = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment