[英]Change log levels in netflix conductor (java springboot)
Is there a way to change the log level from error to warn in Workflow Task Coordinator of Netflix Conductor.有没有办法在 Netflix Conductor 的工作流任务协调器中将日志级别从错误更改为警告。
PS: I'm using Java SpringBoot 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);
}
}
We can put below line to the application.properties for the worker.我们可以在 worker 的 application.properties 下一行。
logging.level.package.class=WARN
where package.class is absolute class name along with package name.其中 package.class 是绝对的 class 名称以及 package 名称。 If there is no code changes then below is the exact configuration,
如果没有代码更改,那么下面是确切的配置,
logging.level.com.netflix.conductor.client.automator.TaskPollExecutor=WARN
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.