Commit d5bac37b by shenjunjie

捕获异常日志级别调整为error

parent 3a32d6b5
...@@ -50,7 +50,7 @@ public class ExceptionCatch { ...@@ -50,7 +50,7 @@ public class ExceptionCatch {
@ExceptionHandler(Exception.class) @ExceptionHandler(Exception.class)
public ResponseResult exception(Exception exception) { public ResponseResult exception(Exception exception) {
//记录日志 //记录日志
log.info("catch exception:", exception); log.error("catch exception:", exception);
//返回400操作失败 //返回400操作失败
return new ResponseResult(CommonCodeEnum.FAIL, Collections.EMPTY_LIST); return new ResponseResult(CommonCodeEnum.FAIL, Collections.EMPTY_LIST);
} }
......
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