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 14f4b72d693242868b04ea53e3df93353363789a..61f2f022e53ba6dc01f8c4b0948af8768a80523d 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];