From f45da91a6d601dd0c34c321485f25f033c9d0a2c Mon Sep 17 00:00:00 2001 From: wangw <1594593906@qq.com> Date: Wed, 12 Nov 2025 11:42:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E6=89=93=E5=8D=B08?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/czg/exception/CzgControllerAdvice.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 af82fa63..a7ff0264 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 @@ -145,7 +145,7 @@ public class CzgControllerAdvice { @ResponseStatus(HttpStatus.OK) public CzgResult errorHandler(Exception ex) { Throwable rootCause = ex; - log.info("rootCause2:{}", rootCause); + log.info("rootCause2:{}", rootCause.getClass()); // 处理自定义异常 if (rootCause instanceof CzgException czgException) { return CzgResult.failure(czgException.getCode(), czgException.getMessage()); @@ -160,7 +160,7 @@ public class CzgControllerAdvice { return CzgResult.success("支付成功"); } while (rootCause.getCause() != null) { - log.info("rootCause1:{}", rootCause); + log.info("rootCause1:{}", rootCause.getClass()); rootCause = rootCause.getCause(); if (rootCause instanceof CzgException czgException) { return CzgResult.failure(czgException.getCode(), czgException.getMessage());