Log exceptions when processing a request
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -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(); | ... | ... |
-
Please register or sign in to post a comment