Commit 2002770e authored by jiaorz's avatar jiaorz

添加日志异常处理

parent b1a31b3d
......@@ -29,7 +29,6 @@ public class GlobalExceptionHandler {
public BaseResponse clientTokenExceptionHandler(HttpServletResponse response, ClientTokenException ex) {
response.setStatus(403);
logger.error(ex.getMessage(),ex);
sendEmail(ex);
return new BaseResponse(ex.getStatus(), ex.getMessage());
}
......@@ -37,7 +36,6 @@ public class GlobalExceptionHandler {
public BaseResponse userTokenExceptionHandler(HttpServletResponse response, UserTokenException ex) {
response.setStatus(200);
logger.error(ex.getMessage(),ex);
sendEmail(ex);
return new BaseResponse(ex.getStatus(), ex.getMessage());
}
......
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