Commit 3e90dd3b authored by Quxl's avatar Quxl

x

parent a27a6698
......@@ -24,7 +24,6 @@ public class ExceptionHandler implements HandlerExceptionResolver {
@Override
public ModelAndView resolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) {
boolean displayInLog = true;
logService.saveErrorLog(ex);
ModelAndView mav = new ModelAndView(new MappingJackson2JsonView());
try {
response.setContentType("application/json");
......@@ -43,7 +42,8 @@ public class ExceptionHandler implements HandlerExceptionResolver {
} finally {
if(displayInLog) {
logger.error("", ex);
}
logService.saveErrorLog(ex);
}
}
return mav;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment