From: Ian Holsman Date: Wed, 28 Nov 2001 21:07:32 +0000 (+0000) Subject: make the proxy code spit out an error to the error log. X-Git-Tag: 2.0.30~353 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1e621b3d4e0e5331387f8ce6853227a931e8ed4;p=apache make the proxy code spit out an error to the error log. This bit me when I included a 11th file no error message, nothing. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92226 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 47d95b3946..b042e1237d 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 2.0.30-dev + *) On a error in the proxy, make it write a line to the error log + [Ian Holsman] + Changes with Apache 2.0.29 *) Add buffering in core_output_filter to ensure that long diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index 5b777902c4..23ed8b4855 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -588,6 +588,8 @@ PROXY_DECLARE(int) ap_proxyerror(request_rec *r, int statuscode, const char *mes apr_table_setn(r->notes, "verbose-error-to", apr_pstrdup(r->pool, "*")); r->status_line = apr_psprintf(r->pool, "%3.3u Proxy Error", statuscode); + ap_log_rerror(APLOG_MARK, APLOG_ERR|APLOG_NOERRNO, 0, r, + "proxy: %s returned by %s", message, r->uri); return statuscode; }