WANG преди 5 години
родител
ревизия
f2a1035bf5
променени са 1 файла, в които са добавени 0 реда и са изтрити 2 реда
  1. 0 2
      src/main/java/cn/com/qmth/examcloud/web/support/CustomExceptionHandler.java

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