From: Mateusz Warowny Date: Mon, 11 Apr 2022 16:10:11 +0000 (+0200) Subject: JAL-3878 Log status changes in annotation task X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9c32e2ee08ecb3fa8d858b1b47f8854a3d7a2f95;p=jalview.git JAL-3878 Log status changes in annotation task --- diff --git a/src/jalview/ws2/actions/annotation/AnnotationTask.java b/src/jalview/ws2/actions/annotation/AnnotationTask.java index 86657c4..8f210e0 100644 --- a/src/jalview/ws2/actions/annotation/AnnotationTask.java +++ b/src/jalview/ws2/actions/annotation/AnnotationTask.java @@ -290,6 +290,7 @@ public class AnnotationTask implements TaskI { if (this.taskStatus != status) { + Cache.log.debug(String.format("%s status change to %s", this, status.name())); this.taskStatus = status; eventHandler.fireTaskStatusChanged(status); } @@ -570,4 +571,11 @@ public class AnnotationTask implements TaskI } } } + + @Override + public String toString() + { + var status = taskStatus != null ? taskStatus.name() : "UNSET"; + return String.format("AnnotationTask(%d, %s)", uid, status); + } }