mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
修复打印不出exception的stackTrace的bug
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -5,7 +5,7 @@
|
||||
<artifactId>liteflow</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<version>1.2.19</version>
|
||||
<version>1.2.20</version>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
||||
@@ -128,11 +128,13 @@ public class FlowExecutor {
|
||||
}else {
|
||||
LOG.info("[{}]:[X]skip component[{}] execution",slot.getRequestId(),component.getClass().getSimpleName());
|
||||
}
|
||||
}catch(Throwable t){
|
||||
}catch(Exception t){
|
||||
if(component.isContinueOnError()){
|
||||
LOG.error("[{}]:component[{}] cause error,but flow is still go on",t,slot.getRequestId(),component.getClass().getSimpleName());
|
||||
String errorMsg = MessageFormat.format("[{0}]:component[{1}] cause error,but flow is still go on", slot.getRequestId(),component.getClass().getSimpleName());
|
||||
LOG.error(errorMsg,t);
|
||||
}else{
|
||||
LOG.error("[{}]:executor cause error",t,slot.getRequestId());
|
||||
String errorMsg = MessageFormat.format("[{0}]:executor cause error",slot.getRequestId());
|
||||
LOG.error(errorMsg,t);
|
||||
throw t;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user