渔民小镇 1 an în urmă
părinte
comite
b9bd28483d

+ 2 - 2
common/common-core/src/main/java/com/iohao/mmo/common/core/flow/internal/DebugActionMethodExceptionProcess.java

@@ -34,13 +34,13 @@ public class DebugActionMethodExceptionProcess implements ActionMethodExceptionP
     @Override
     public MsgException processException(final Throwable e) {
 
+        log.error(e.getMessage(), e);
+
         if (e instanceof MsgException msgException) {
-            log.error(e.getMessage(), e);
             return msgException;
         }
 
         // 到这里,一般不是用户自定义的错误,很可能是开发者引入的第三方包或自身未捕获的错误等情况
-        log.error(e.getMessage(), e);
         return new MsgException(ActionErrorEnum.systemOtherErrCode);
     }
 }