From: Jeff Trawick Date: Tue, 24 Aug 2010 18:04:06 +0000 (+0000) Subject: ap_proxy_retry_worker() only needs to spit out one debug X-Git-Tag: 2.3.9~540 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eed7564b0385aa88a65c4f46a01674e878d39b0e;p=apache ap_proxy_retry_worker() only needs to spit out one debug 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 --- diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index d6e1ea6d18..b4f977ee99 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -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; } }