b581c765 by Ean Schuessler

Log exceptions when processing a request

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