From d14730464d08c58cb55306678f0af3db4f9f0fb1 Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Tue, 16 May 2023 14:44:09 +0200 Subject: [PATCH] JAL-3954 Log events TaskEventListener.NULL_LISTENER --- src/jalview/ws2/actions/api/TaskEventListener.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/jalview/ws2/actions/api/TaskEventListener.java b/src/jalview/ws2/actions/api/TaskEventListener.java index 9dee10c..7427aa8 100644 --- a/src/jalview/ws2/actions/api/TaskEventListener.java +++ b/src/jalview/ws2/actions/api/TaskEventListener.java @@ -2,6 +2,7 @@ package jalview.ws2.actions.api; import java.util.List; +import jalview.bin.Console; import jalview.ws2.api.JobStatus; import jalview.ws2.api.WebServiceJobHandle; @@ -115,32 +116,38 @@ public interface TaskEventListener @Override public void taskStarted(TaskI source, List subJobs) { + Console.info("task started with " + subJobs.size() + " jobs"); } @Override public void taskStatusChanged(TaskI source, JobStatus status) { + Console.info("task status " + status); } @Override public void taskCompleted(TaskI source, Object result) { + Console.info("task completed"); } @Override public void taskException(TaskI source, Exception e) { + Console.info("task failed", e); } @Override public void taskRestarted(TaskI source) { + Console.info("task restarted"); } @Override public void subJobStatusChanged(TaskI source, JobI job, JobStatus status) { + Console.info("sub-job " + job.getInternalId() + " status " + status); } @Override -- 1.7.10.2