more logging

pull/1/head
Michael Peter Christen 13 years ago
parent 6ea77e5d7a
commit 2f46085be0

@ -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<String, Object> prop = parseRequestLine(HeaderFramework.METHOD_GET, arg, session);

@ -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();
}
}

@ -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;

Loading…
Cancel
Save