mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 20:22:07 +08:00
enhancement #I5BR8P 组件打印信息,希望能定制带上别名
This commit is contained in:
@@ -19,7 +19,7 @@ public class ScriptComponent extends NodeComponent{
|
||||
}
|
||||
|
||||
public void loadScript(String script) {
|
||||
log.info("load script for component[{}][{}]", getNodeId(), getDisplayName());
|
||||
log.info("load script for component[{}]", getDisplayName());
|
||||
ScriptExecutorFactory.loadInstance().getScriptExecutor().load(getNodeId(), script);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ public abstract class NodeExecutor {
|
||||
//执行重试逻辑 - 子类通过实现该方法进行重试逻辑的控制
|
||||
protected void retry(NodeComponent instance, int currentRetryCount) throws Exception {
|
||||
Slot slot = DataBus.getSlot(instance.getSlotIndex());
|
||||
LOG.info("[{}]:component[{}][{}] performs {} retry", slot.getRequestId(), instance.getNodeId(),instance.getDisplayName(), currentRetryCount + 1);
|
||||
LOG.info("[{}]:component[{}] performs {} retry", slot.getRequestId(),instance.getDisplayName(), currentRetryCount + 1);
|
||||
//执行业务逻辑的主要入口
|
||||
instance.execute();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user