diff --git a/src/main/java/org/jenkinsci/plugins/workflow/steps/durable_task/DurableTaskStep.java b/src/main/java/org/jenkinsci/plugins/workflow/steps/durable_task/DurableTaskStep.java index 0057eaad..64b4e712 100644 --- a/src/main/java/org/jenkinsci/plugins/workflow/steps/durable_task/DurableTaskStep.java +++ b/src/main/java/org/jenkinsci/plugins/workflow/steps/durable_task/DurableTaskStep.java @@ -430,11 +430,11 @@ private void getWorkspaceProblem(Exception x) { LOGGER.log(Level.FINEST, "JENKINS-34021: DurableTaskStep.Execution.listener present in {0}", context); } else { LOGGER.log(Level.WARNING, "JENKINS-34021: TaskListener not available upon request in {0}", context); - l = new LogTaskListener(LOGGER, Level.FINE); + l = TaskListener.NULL; } } catch (Exception x) { LOGGER.log(Level.FINE, "JENKINS-34021: could not get TaskListener in " + context, x); - l = new LogTaskListener(LOGGER, Level.FINE); + l = TaskListener.NULL; recurrencePeriod = 0; } return l;