diff --git a/core/src/main/java/com/netflix/conductor/core/execution/WorkflowSweeper.java b/core/src/main/java/com/netflix/conductor/core/execution/WorkflowSweeper.java index 076fec2d81..b70c2d4b86 100644 --- a/core/src/main/java/com/netflix/conductor/core/execution/WorkflowSweeper.java +++ b/core/src/main/java/com/netflix/conductor/core/execution/WorkflowSweeper.java @@ -115,7 +115,9 @@ public void sweep(List workflowIds, WorkflowExecutor executor) throws Ex Future future = es.submit(() -> { NDC.push("sweep-" + UUID.randomUUID().toString()); - logger.debug("Calling decider from sweeper for workflow {}", workflowId); + if (logger.isDebugEnabled()) { + logger.debug("Calling decider from sweeper for workflow {}", workflowId); + } try { WorkflowContext ctx = new WorkflowContext(config.getAppId());