有没有办法在Netflix Conductor的工作流任务协调器中将日志错误更改为警告。
PS:我正在使用Java SpringBoot
for (Task task : tasks) {
try {
executorService.submit(() -> {
try {
logger.debug("Executing task {}, taskId - {} in worker - {}", task.getTaskDefName(), task.getTaskId(), worker.getIdentity());
execute(worker, task);
} catch (Throwable t) {
task.setStatus(Task.Status.FAILED);
TaskResult result = new TaskResult(task);
handleException(t, result, worker, task);
}
});
} catch (RejectedExecutionException e) {
WorkflowTaskMetrics.incrementTaskExecutionQueueFullCount(worker.getTaskDefName());
logger.error("Execution queue is full, returning task: {}", task.getTaskId(), e);
returnTask(worker, task);
}
}
您可以设置与我们在春季启动中设置的日志级别相同的日志级别。
例如:
logging.level.com.netflix.conductor = warn
logging.level.root=warn
logging.level.org.springframework.web=debug
logging.level.org.hibernate=error
参考编号:https://netflix.github.io/conductor/how-tos/Monitoring/Conductor-LogLevel/#conductor-日志级