368992: improved logging

This commit is contained in:
Greg Wilkins 2012-01-19 23:11:27 +11:00
parent 5cd9dbc6d3
commit 50e551de64
1 changed files with 8 additions and 2 deletions

View File

@ -739,8 +739,14 @@ public class ProxyServlet implements Servlet
*/
protected void handleOnException(Throwable ex, HttpServletRequest request, HttpServletResponse response)
{
_log.warn(ex.toString());
_log.debug(ex);
if (ex instanceof IOException)
{
_log.warn(ex.toString());
_log.debug(ex);
}
else
_log.warn(ex);
if (!response.isCommitted())
{
response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);