From 3bf219f227a3cfc2dd6d2b6dfa13ff6c6537a252 Mon Sep 17 00:00:00 2001 From: m2 Date: Tue, 9 Apr 2024 10:48:19 +0800 Subject: [PATCH] refactor(MicaExceptionTranslator): change log position --- .../net/dreamlu/mica/lite/error/MicaExceptionTranslator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mica-lite/src/main/java/net/dreamlu/mica/lite/error/MicaExceptionTranslator.java b/mica-lite/src/main/java/net/dreamlu/mica/lite/error/MicaExceptionTranslator.java index 1956ddfa..e4822cfe 100644 --- a/mica-lite/src/main/java/net/dreamlu/mica/lite/error/MicaExceptionTranslator.java +++ b/mica-lite/src/main/java/net/dreamlu/mica/lite/error/MicaExceptionTranslator.java @@ -49,9 +49,9 @@ public class MicaExceptionTranslator { @ExceptionHandler(ServiceException.class) @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) public R handleError(ServiceException e) { - log.error("业务异常", e); R result = e.getResult(); if (result == null) { + log.error("业务异常", e); // 发送:未知业务异常事件 result = R.fail(SystemCode.FAILURE, e.getMessage()); publishEvent(e); -- Gitee