From 44e13ef60428f134093067b359c989d8a0c3b751 Mon Sep 17 00:00:00 2001 From: Patrick Durand Date: Tue, 2 Feb 2021 11:51:11 +0100 Subject: [PATCH] add log messages --- .../plealog/blastviewer/actions/api/BVGenericSaveUtils.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bzh/plealog/blastviewer/actions/api/BVGenericSaveUtils.java b/src/bzh/plealog/blastviewer/actions/api/BVGenericSaveUtils.java index 19ab26c..49ea5a8 100644 --- a/src/bzh/plealog/blastviewer/actions/api/BVGenericSaveUtils.java +++ b/src/bzh/plealog/blastviewer/actions/api/BVGenericSaveUtils.java @@ -106,6 +106,7 @@ public void saveResult() { String fName = file.getName(); String fExt = fName.substring(fName.lastIndexOf('.')+1); SROutput sro_to_save; + EZLogger.info(String.format("Preparing data to export (%d)", _iterationID)); if (_iterationID>=0) sro_to_save = SRUtils.extractResult(_sro, _iterationID); else @@ -113,6 +114,7 @@ public void saveResult() { SRWriter writer; //queries annotated with BCO is a particular feature, so handle that case int i, size = sro_to_save.countIteration(); + EZLogger.info(String.format("Checking query features (%d)", size)); boolean hasQueryAnnotation = false; for (i = 0; i < size; i++) {// loop on iterations if (sro_to_save.getIteration(i).getIterationQueryFeatureTable()!=null){ @@ -120,6 +122,7 @@ public void saveResult() { break; } } + EZLogger.info(String.format("Saving to file (%s)", fName)); switch(fExt){ case "csv": //Use ArrayList specifically to avoid UnsuportedOperationException when @@ -208,6 +211,7 @@ public void saveResult() { } finally { EZEnvironment.setDefaultCursor(); + EZLogger.info("Save done"); } } }