b581c765 by Ean Schuessler

Log exceptions when processing a request

1 parent 79215975
......@@ -232,6 +232,8 @@ public class DirectControlServlet extends HttpServlet {
} catch (Throwable t) {
response.setStatus(400);
PrintWriter writer = response.getWriter();
Debug.logInfo("Exception processing request", module);
Debug.logInfo(t, module);
while (t != null) {
t.printStackTrace(writer);
t = t.getCause();
......