From 9c32e2ee08ecb3fa8d858b1b47f8854a3d7a2f95 Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Mon, 11 Apr 2022 18:10:11 +0200 Subject: [PATCH] JAL-3878 Log status changes in annotation task --- src/jalview/ws2/actions/annotation/AnnotationTask.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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); + } } -- 1.7.10.2