enhancement #I5KAMF 是否可以增加自定义配置哪些异常类型日志不打印

This commit is contained in:
everywhere.z
2022-08-17 11:43:29 +08:00
parent 33cbbc0200
commit 46bbcab05b

View File

@@ -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 {