diff --git a/cash-common/cash-common-api-config/src/main/java/com/czg/exception/CzgControllerAdvice.java b/cash-common/cash-common-api-config/src/main/java/com/czg/exception/CzgControllerAdvice.java index 8e7d0f64..09f097af 100644 --- a/cash-common/cash-common-api-config/src/main/java/com/czg/exception/CzgControllerAdvice.java +++ b/cash-common/cash-common-api-config/src/main/java/com/czg/exception/CzgControllerAdvice.java @@ -146,6 +146,7 @@ public class CzgControllerAdvice { public CzgResult errorHandler(Exception ex) { Throwable rootCause = ex; while (rootCause.getCause() != null) { + log.info("rootCause:{}", rootCause.getClass()); rootCause = rootCause.getCause(); if (rootCause instanceof CzgException czgException) { return CzgResult.failure(czgException.getCode(), czgException.getMessage());