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;
 			}