From cb77a3141ac06c3e66ebf06671b482c0d07923fa Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Tue, 11 Sep 2018 21:53:07 +0200
Subject: [PATCH] some debug added

---
 .../lcsb/mapviewer/annotation/services/MiRNAParser.java     | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/annotation/src/main/java/lcsb/mapviewer/annotation/services/MiRNAParser.java b/annotation/src/main/java/lcsb/mapviewer/annotation/services/MiRNAParser.java
index 14f4b72d69..61f2f022e5 100644
--- a/annotation/src/main/java/lcsb/mapviewer/annotation/services/MiRNAParser.java
+++ b/annotation/src/main/java/lcsb/mapviewer/annotation/services/MiRNAParser.java
@@ -251,17 +251,21 @@ public class MiRNAParser extends CachableInterface implements IExternalService {
   private InputStream getSourceInputStream() throws IOException {
     if (this.sourceInputStream == null) {
       this.sourceInputStream = new ByteArrayOutputStream();
-
       if (!bigFileCache.isCached(URL_SOURCE_DATABASE)) {
+        logger.debug("downloading xls file with mirna");
         try {
           bigFileCache.downloadFile(URL_SOURCE_DATABASE, false, new IProgressUpdater() {
             @Override
             public void setProgress(double progress) {
+              logger.debug("Progress: " + progress);
             }
           });
         } catch (URISyntaxException e) {
           throw new IOException("Problem with downloading file: " + URL_SOURCE_DATABASE, e);
         }
+        logger.debug("File downloaded");
+      } else {
+        logger.debug("xls file with mirna in cache");
       }
       String filename = bigFileCache.getAbsolutePathForFile(URL_SOURCE_DATABASE);
       byte[] buffer = new byte[BUFFER_SIZE];
-- 
GitLab