diff --git a/source/de/anomic/http/server/HTTPDemon.java b/source/de/anomic/http/server/HTTPDemon.java index 6dc088eff..176b32969 100644 --- a/source/de/anomic/http/server/HTTPDemon.java +++ b/source/de/anomic/http/server/HTTPDemon.java @@ -380,7 +380,7 @@ public final class HTTPDemon implements serverHandler, Cloneable { } public Boolean GET(final String arg, final Session session) { - //System.out.println("GET " + arg); + System.out.println("GET " + arg); try { // parsing the http request line final HashMap prop = parseRequestLine(HeaderFramework.METHOD_GET, arg, session); diff --git a/source/net/yacy/http/SSIHandler.java b/source/net/yacy/http/SSIHandler.java index 5d74f97e0..d0baba3e0 100644 --- a/source/net/yacy/http/SSIHandler.java +++ b/source/net/yacy/http/SSIHandler.java @@ -35,6 +35,7 @@ import javax.servlet.http.HttpServletResponse; import org.eclipse.jetty.server.Handler; import org.eclipse.jetty.server.HandlerContainer; +import net.yacy.kelondro.logging.Log; import net.yacy.kelondro.util.ByteBuffer; /** @@ -78,9 +79,9 @@ public class SSIHandler extends ContentModHandler implements Handler, HandlerCon try { RequestDispatcher dispatcher = request.getRequestDispatcher("/"+path); dispatcher.include(request, response); + response.flushBuffer(); } catch (Exception e) { - // for debugging TODO: remove? - e.printStackTrace(); + Log.logException(e); throw new ServletException(); } } diff --git a/source/net/yacy/yacy.java b/source/net/yacy/yacy.java index addcca206..56d5340f2 100644 --- a/source/net/yacy/yacy.java +++ b/source/net/yacy/yacy.java @@ -85,7 +85,6 @@ import net.yacy.search.index.Segment; import com.google.common.io.Files; import de.anomic.data.Translator; -import de.anomic.http.server.HTTPDemon; import de.anomic.server.serverCore; import de.anomic.tools.enumerateFiles;