From 6e97f705498a72b387b95e4affa0de347141b1e2 Mon Sep 17 00:00:00 2001 From: theli Date: Wed, 29 Jun 2005 10:05:38 +0000 Subject: [PATCH] *) httpd.java: improved errorhandling git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@333 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/http/httpd.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/de/anomic/http/httpd.java b/source/de/anomic/http/httpd.java index 0b637c993..d7f509ce0 100644 --- a/source/de/anomic/http/httpd.java +++ b/source/de/anomic/http/httpd.java @@ -520,13 +520,14 @@ public final class httpd implements serverHandler { if (errorMsg != null) { if (errorMsg.startsWith("Socket closed")) { this.log.logInfo("httpd shutdown detected ..."); - } - else if ((errorMsg.startsWith("Broken pipe") || errorMsg.startsWith("Connection reset"))) { + } else if ((errorMsg.startsWith("Broken pipe") || errorMsg.startsWith("Connection reset"))) { // client closed the connection, so we just end silently this.log.logInfo("Client unexpectedly closed connection"); + } else { + this.log.logError("Unexpected Error. " + e.getClass().getName() + ": " + e.getMessage(),e); } } else { - this.log.logError("Unexpected Error. " + e.getClass().getName() + ": " + e.getMessage(),e); + this.log.logError("Unexpected Error. " + e.getClass().getName(),e); } } }