From 62a4f4cf488b6bf122eb3f167758f976be2e6152 Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Sat, 23 Jan 2016 17:37:36 +0000 Subject: [PATCH] better logging git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1726417 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/mod_proxy_hcheck.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/proxy/mod_proxy_hcheck.c b/modules/proxy/mod_proxy_hcheck.c index 2a01d85aab..e61af4d9dd 100644 --- a/modules/proxy/mod_proxy_hcheck.c +++ b/modules/proxy/mod_proxy_hcheck.c @@ -744,15 +744,17 @@ static apr_status_t hc_check_http(sctx_t *ctx, apr_pool_t *ptemp, proxy_worker * if (ok > 0) { status = OK; ap_log_error(APLOG_MARK, APLOG_TRACE2, 0, ctx->s, - "Condition %s: passed", worker->s->hcexpr); + "Condition %s for %s (%s): passed", worker->s->hcexpr, + hc->s->name, worker->s->name); } else if (ok < 0 || err) { status = !OK; ap_log_error(APLOG_MARK, APLOG_INFO, 0, ctx->s, APLOGNO(03301) - "Error on checking condition %s: %s", worker->s->hcexpr, - err); + "Error on checking condition %s for %s (%s): %s", worker->s->hcexpr, + hc->s->name, worker->s->name, err); } else { ap_log_error(APLOG_MARK, APLOG_TRACE2, 0, ctx->s, - "Condition %s: failed", worker->s->hcexpr); + "Condition %s for %s (%s) : failed", worker->s->hcexpr, + hc->s->name, worker->s->name); status = !OK; } } else if (r->status < 200 || r->status > 399) { -- 2.40.0