From 25d8c015e56059d57b38468db9d19533b1d14a21 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 7 Feb 2015 15:06:12 +1100 Subject: [PATCH] Add information about which proxy's socket is invalidated --- src/generator.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/generator.c b/src/generator.c index c449d2e6..b0d4c378 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1692,8 +1692,8 @@ reconnect: proxi = cproxy; if (!ckp->passthrough) { connsock_t *cs = proxi->cs; - LOGWARNING("Successfully connected to %s:%s as proxy", - cs->url, cs->port); + LOGWARNING("Successfully connected to proxy %d %s:%s as proxy", + proxi->id, cs->url, cs->port); dealloc(buf); ASPRINTF(&buf, "proxy=%d", proxi->id); send_proc(ckp->stratifier, buf); @@ -1710,7 +1710,8 @@ retry: } while (selret < 1); if (unlikely(proxi->cs->fd < 0)) { - LOGWARNING("Upstream socket invalidated, will attempt failover"); + LOGWARNING("Upstream proxy %d:%s socket invalidated, will attempt failover", + proxi->id, proxi->cs->url); proxi->alive = false; proxi = NULL; goto reconnect;