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..4b56cab0 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 @@ -47,7 +47,6 @@ import hudson.slaves.OfflineCause; import hudson.util.DaemonThreadFactory; import hudson.util.FormValidation; -import hudson.util.LogTaskListener; import hudson.util.NamingThreadFactory; import hudson.util.StreamTaskListener; import java.io.FilterOutputStream; @@ -430,11 +429,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;