slot的printStep能返回出来

This commit is contained in:
bryan31
2021-04-06 12:07:03 +08:00
parent efdec4b948
commit 806852edbf
2 changed files with 3 additions and 2 deletions

View File

@@ -112,7 +112,7 @@ public abstract class AbsSlot implements Slot {
this.executeSteps.add(step);
}
public void printStep(){
public String printStep(){
StringBuffer str = new StringBuffer();
CmpStep cmpStep = null;
for (Iterator<CmpStep> it = executeSteps.iterator(); it.hasNext();) {
@@ -123,6 +123,7 @@ public abstract class AbsSlot implements Slot {
}
}
LOG.info("[{}]:CHAIN_NAME[{}]\n{}",getRequestId(),this.getChainName(),str.toString());
return str.toString();
}
@Override

View File

@@ -42,7 +42,7 @@ public interface Slot {
public void addStep(CmpStep step);
public void printStep();
public String printStep();
public void generateRequestId();