Skip to content

Commit

Permalink
Merge pull request #327 from jglick/LogTaskListener
Browse files Browse the repository at this point in the history
Do not even try to use `LogTaskListener`
  • Loading branch information
jglick authored Jul 28, 2023
2 parents b30aaca + a4d9083 commit 94bdc2b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 94bdc2b

Please sign in to comment.