]> granicus.if.org Git - apache/commitdiff
better logging
authorJim Jagielski <jim@apache.org>
Sat, 23 Jan 2016 17:37:36 +0000 (17:37 +0000)
committerJim Jagielski <jim@apache.org>
Sat, 23 Jan 2016 17:37:36 +0000 (17:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1726417 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_hcheck.c

index 2a01d85aab99feab5699f2924a481b491ee8d003..e61af4d9dd37525510685bc5f5b69fef22c071e4 100644 (file)
@@ -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) {