]> granicus.if.org Git - apache/commitdiff
make the proxy code spit out an error to the error log.
authorIan Holsman <ianh@apache.org>
Wed, 28 Nov 2001 21:07:32 +0000 (21:07 +0000)
committerIan Holsman <ianh@apache.org>
Wed, 28 Nov 2001 21:07:32 +0000 (21:07 +0000)
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

CHANGES
modules/proxy/proxy_util.c

diff --git a/CHANGES b/CHANGES
index 47d95b3946c050e7e133afa0d64508b5a0bc904e..b042e1237d3633d7645258fb224917e717d55a4a 100644 (file)
--- 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
index 5b777902c40df4294bd1ff93fddc1e5331469b3d..23ed8b48552ce7b6f07d9b6d689e8683a6f2bbc1 100644 (file)
@@ -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;
 }