WANG 5 rokov pred
rodič
commit
f2a1035bf5

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

@@ -224,7 +224,6 @@ public class CustomExceptionHandler {
 					|| t instanceof org.springframework.orm.jpa.JpaSystemException
 					|| t instanceof org.springframework.transaction.CannotCreateTransactionException) {
 				httpStatus = HttpStatus.SERVICE_UNAVAILABLE;
-				printStackTrace = false;
 			} else {
 				httpStatus = HttpStatus.OK;
 			}
@@ -234,7 +233,6 @@ public class CustomExceptionHandler {
 					|| t instanceof org.springframework.orm.jpa.JpaSystemException
 					|| t instanceof org.springframework.transaction.CannotCreateTransactionException) {
 				httpStatus = HttpStatus.SERVICE_UNAVAILABLE;
-				printStackTrace = false;
 			} else {
 				httpStatus = HttpStatus.INTERNAL_SERVER_ERROR;
 			}