From 99fb26e49960c3be092ea7d0bf50128d52c1bd4d Mon Sep 17 00:00:00 2001 From: theli Date: Sun, 20 Nov 2005 15:37:23 +0000 Subject: [PATCH] *) Suppressing stackTraces in proxyError message for harmless errors See: http://www.yacy-forum.de/viewtopic.php?t=1504 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1108 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/http/httpdProxyHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/de/anomic/http/httpdProxyHandler.java b/source/de/anomic/http/httpdProxyHandler.java index 9ed502dd5..7055041db 100644 --- a/source/de/anomic/http/httpdProxyHandler.java +++ b/source/de/anomic/http/httpdProxyHandler.java @@ -1255,7 +1255,7 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt int httpStatusCode = 404; String httpStatusText = null; String errorMessage = null; - Exception errorExc = e; + Exception errorExc = null; boolean unknownError = false; if (e instanceof ConnectException) { @@ -1289,6 +1289,7 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt } else { errorMessage = "Unexpected Error. " + e.getClass().getName() + ": " + e.getMessage(); unknownError = true; + errorExc = e; } }