Skip to content

Commit

Permalink
more details to fetcherror
Browse files Browse the repository at this point in the history
Ref #2622
  • Loading branch information
nigoroll committed Apr 3, 2018
1 parent b40aa2c commit aab5dda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/varnishd/cache/cache_backend.c
Expand Up @@ -33,6 +33,7 @@
#include "config.h"

#include <stdlib.h>
#include <errno.h>

#include "cache_varnishd.h"

Expand Down Expand Up @@ -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);
if (pfd == NULL) {
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 ?
VSC_C_main->backend_fail++;
bo->htc = NULL;
Expand Down

0 comments on commit aab5dda

Please sign in to comment.