update - 调整引擎内部的异常日志打印

This commit is contained in:
wangli 2024-01-19 11:30:47 +08:00
parent 5a98b1ee44
commit b46466d583

View File

@ -28,10 +28,10 @@ public class FlowableExceptionResultHandlerAdvice extends AbstractExceptionApiRe
@Override @Override
protected IRespCode decode(FlowableException ex, IRespCode fallbackCode) { protected IRespCode decode(FlowableException ex, IRespCode fallbackCode) {
log.warn("发现 FlowableException Error: ", ex);
if (Objects.nonNull(ex.getCause()) && ex.getCause() instanceof WorkflowEngineException) { if (Objects.nonNull(ex.getCause()) && ex.getCause() instanceof WorkflowEngineException) {
return new RespCode(UNAVAILABLE_FOR_LEGAL_REASONS.getCode(), ex.getCause().getMessage()); return new RespCode(UNAVAILABLE_FOR_LEGAL_REASONS.getCode(), ex.getCause().getMessage());
} }
log.error("发现 FlowableException Error: ", ex);
return new RespCode(UNAVAILABLE_FOR_LEGAL_REASONS.getCode(), ex.getMessage()); return new RespCode(UNAVAILABLE_FOR_LEGAL_REASONS.getCode(), ex.getMessage());
} }
} }