Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) Logging error message to logging output if no errormessage can be send to the user by the proxy Note: This is only done if you set the logging level of PROXY to FINE

theli3dc6845bef8d
diff --git a/source/de/anomic/http/httpdProxyHandler.java b/source/de/anomic/http/httpdProxyHandler.java
index 608f6646f..f40a2c2e7 100644
--- a/source/de/anomic/http/httpdProxyHandler.java
+++ b/source/de/anomic/http/httpdProxyHandler.java
@@ -690,6 +690,9 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt
if (!conProp.containsKey(httpd.CONNECTION_PROP_PROXY_RESPOND_HEADER)) {
httpd.sendRespondError(conProp,respond,4,httpStatusCode,httpStatusText,errorMessage,errorExc);
} else {
+ this.theLogger.logFine("Error while processing request '" +
+ conProp.getProperty(httpd.CONNECTION_PROP_REQUESTLINE,"unknown") + "':" +
+ "\n" + errorMessage,e);
this.forceConnectionClose();
}
} catch (Exception ee) {