You've already forked FrameTour-BE
修改
This commit is contained in:
@ -74,14 +74,6 @@ public class CustomExceptionHandle {
|
||||
@ExceptionHandler(value = Exception.class)
|
||||
public ApiResponse<String> handle(Exception e) {
|
||||
LOGGER.error("系统异常 -> {}", e.getMessage(), e);
|
||||
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
|
||||
if (attributes != null) {
|
||||
try {
|
||||
HttpSaver.saveRequestToFile(attributes.getRequest());
|
||||
} catch (IOException ex) {
|
||||
LOGGER.error("保存请求信息失败 -> {}", e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
return ApiResponse.buildResult(BizCodeEnum.SERVER_UNKONWN_ERROR);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user