440255 ensure 500 is logged on thrown Errors

This commit is contained in:
Greg Wilkins 2014-08-20 11:36:58 +10:00
parent e15a87f499
commit caaa7c508c

View File

@ -96,7 +96,7 @@ public class RequestLogHandler extends HandlerWrapper
}
catch(Error|IOException|ServletException|RuntimeException e)
{
if (!response.isCommitted())
if (!response.isCommitted() && !baseRequest.getHttpChannelState().isAsync())
response.setStatus(500);
throw e;
}