From d4240811e880e89bf86dcbb511d4e4d1d180f063 Mon Sep 17 00:00:00 2001 From: luozhun <2025254074@qq.com> Date: Wed, 4 Sep 2024 17:13:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=AE=89=E7=94=A8=E6=88=B7=E5=A2=9E?= =?UTF-8?q?=E5=88=A0=E6=94=B9=E6=9F=A5=20=E6=8E=A5=E5=8F=A3=E9=89=B4?= =?UTF-8?q?=E6=9D=83=20=E8=BF=87=E6=BB=A4=E5=AE=A2=E6=88=B7=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/changhu/support/handler/GlobalExceptionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policeSecurityServer/src/main/java/com/changhu/support/handler/GlobalExceptionHandler.java b/policeSecurityServer/src/main/java/com/changhu/support/handler/GlobalExceptionHandler.java index 66b5c80..f350a77 100644 --- a/policeSecurityServer/src/main/java/com/changhu/support/handler/GlobalExceptionHandler.java +++ b/policeSecurityServer/src/main/java/com/changhu/support/handler/GlobalExceptionHandler.java @@ -36,7 +36,7 @@ public class GlobalExceptionHandler { @ExceptionHandler(Throwable.class) public JsonResult throwableHandler(Throwable throwable) { String errorLabel = "系统错误:" + ExceptionUtil.getMessage(throwable); - log.error("系统错误:{}", ExceptionUtil.stacktraceToString(throwable)); + log.error("系统错误:", throwable); return JsonResult.custom(ResultCode.ERROR.getCode(), errorLabel); }