From 3642c9ed5910453b96939a469d49146c75d55c09 Mon Sep 17 00:00:00 2001 From: bryan31 Date: Thu, 13 Jan 2022 20:01:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=96=84=E6=97=A5=E5=BF=97=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yomahub/liteflow/core/FlowExecutor.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/liteflow-core/src/main/java/com/yomahub/liteflow/core/FlowExecutor.java b/liteflow-core/src/main/java/com/yomahub/liteflow/core/FlowExecutor.java index cc3d13aca..bc0d05f0d 100644 --- a/liteflow-core/src/main/java/com/yomahub/liteflow/core/FlowExecutor.java +++ b/liteflow-core/src/main/java/com/yomahub/liteflow/core/FlowExecutor.java @@ -368,7 +368,8 @@ public class FlowExecutor { chain.execute(slotIndex); } catch (Exception e) { if (ObjectUtil.isNotNull(chain)){ - LOG.error("[{}]:chain[{}] execute error on slot[{}]", slot.getRequestId(), chain.getChainName(), slotIndex, e); + String errMsg = StrUtil.format("[{}]:chain[{}] execute error on slot[{}]", slot.getRequestId(), chain.getChainName(), slotIndex); + LOG.error(errMsg, e); } slot.setException(e); } finally { @@ -377,7 +378,8 @@ public class FlowExecutor { chain.executeFinally(slotIndex); } }catch (Exception e){ - LOG.error("[{}]:an exception occurred during the finally Component execution in chain[{}]", slot.getRequestId(), chain.getChainName()); + String errMsg = StrUtil.format("[{}]:an exception occurred during the finally Component execution in chain[{}]", slot.getRequestId(), chain.getChainName()); + LOG.error(errMsg, e); } if (!isInnerChain) {