mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-15 04:22:09 +08:00
enhancement #I5KAMF 是否可以增加自定义配置哪些异常类型日志不打印
This commit is contained in:
@@ -287,9 +287,17 @@ public class FlowExecutor {
|
||||
} catch (Exception e) {
|
||||
if (ObjectUtil.isNotNull(chain)) {
|
||||
String errMsg = StrUtil.format("[{}]:chain[{}] execute error on slot[{}]", slot.getRequestId(), chain.getChainName(), slotIndex);
|
||||
LOG.error(errMsg, e);
|
||||
if (BooleanUtil.isTrue(liteflowConfig.getPrintExecutionLog())){
|
||||
LOG.error(errMsg, e);
|
||||
}else{
|
||||
LOG.error(errMsg);
|
||||
}
|
||||
}else{
|
||||
LOG.error(e.getMessage(), e);
|
||||
if (BooleanUtil.isTrue(liteflowConfig.getPrintExecutionLog())){
|
||||
LOG.error(e.getMessage(), e);
|
||||
}else{
|
||||
LOG.error(e.getMessage());
|
||||
}
|
||||
}
|
||||
slot.setException(e);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user