]> granicus.if.org Git - apache/commitdiff
ap_proxy_retry_worker() only needs to spit out one debug
authorJeff Trawick <trawick@apache.org>
Tue, 24 Aug 2010 18:04:06 +0000 (18:04 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 24 Aug 2010 18:04:06 +0000 (18:04 +0000)
message, and it should indicate whether or not retry will
be attempted

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@988635 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_util.c

index d6e1ea6d1887643528593050306485f6be35cdd2..b4f977ee993c1ddb654c346c8a809a2a0c83a905 100644 (file)
@@ -2025,9 +2025,6 @@ PROXY_DECLARE(int) ap_proxy_retry_worker(const char *proxy_function,
                                          server_rec *s)
 {
     if (worker->s->status & PROXY_WORKER_IN_ERROR) {
-        ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s,
-                    "proxy: %s: retrying the worker for (%s)",
-                     proxy_function, worker->hostname);
         if (apr_time_now() > worker->s->error_time + worker->retry) {
             ++worker->s->retries;
             worker->s->status &= ~PROXY_WORKER_IN_ERROR;
@@ -2037,6 +2034,9 @@ PROXY_DECLARE(int) ap_proxy_retry_worker(const char *proxy_function,
             return OK;
         }
         else {
+            ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s,
+                         "proxy: %s: too soon to retry worker for (%s)",
+                         proxy_function, worker->hostname);
             return DECLINED;
         }
     }