WANG 5 年之前
父节点
当前提交
ab3525212a
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/main/java/cn/com/qmth/examcloud/web/support/CustomExceptionHandler.java

+ 2 - 0
src/main/java/cn/com/qmth/examcloud/web/support/CustomExceptionHandler.java

@@ -217,12 +217,14 @@ public class CustomExceptionHandler {
 		if (alwaysOK) {
 			if (t instanceof ApiFlowLimitedException) {
 				httpStatus = HttpStatus.SERVICE_UNAVAILABLE;
+				printStackTrace = false;
 			} else {
 				httpStatus = HttpStatus.OK;
 			}
 		} else {
 			if (t instanceof ApiFlowLimitedException) {
 				httpStatus = HttpStatus.SERVICE_UNAVAILABLE;
+				printStackTrace = false;
 			} else {
 				httpStatus = HttpStatus.INTERNAL_SERVER_ERROR;
 			}