Skip to content

Commit b4a2ed6

Browse files
committed
refactor: RES_BODY_NULL 情况不打印 log
1 parent 5d7fef2 commit b4a2ed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework/framework_base/src/main/java/com/github/cadecode/uniboot/framework/base/advisor/ApiExceptionAdvisor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ public class ApiExceptionAdvisor {
2323
*/
2424
@ExceptionHandler(ApiException.class)
2525
public ApiResult<Object> handleApiException(ApiException e) {
26-
log.error("Api Exception =>", e);
2726
// 特殊处理接口返回 null 的情况
2827
if (FrameErrorEnum.RES_BODY_NULL.getCode().equals(e.getErrorCode().getCode())) {
2928
return ApiResult.ok(null);
3029
}
30+
log.error("Api Exception =>", e);
3131
return ApiResult.error(e.getErrorCode()).moreInfo(e.getMoreInfo());
3232
}
3333

0 commit comments

Comments
 (0)