Change log errors to warning in netflix conductor (java springboot)

357 views Asked by At

Is there a way to change the log errors to warnings in Workflow Task Coordinator of Netflix Conductor.

PS: I'm using 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);
            }
        }
1

There are 1 answers

0
swapyonubuntu On

You can set logging level same as we set in spring boot.

eg:

logging.level.com.netflix.conductor = warn
logging.level.root=warn
logging.level.org.springframework.web=debug
logging.level.org.hibernate=error

Ref: https://netflix.github.io/conductor/how-tos/Monitoring/Conductor-LogLevel/#conductor-log-level