Skip to content
Snippets Groups Projects
Commit cb77a314 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

some debug added

parent 289fa165
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!386Resolve "Continous integration tests"
Pipeline #6326 failed
...@@ -251,17 +251,21 @@ public class MiRNAParser extends CachableInterface implements IExternalService { ...@@ -251,17 +251,21 @@ public class MiRNAParser extends CachableInterface implements IExternalService {
private InputStream getSourceInputStream() throws IOException { private InputStream getSourceInputStream() throws IOException {
if (this.sourceInputStream == null) { if (this.sourceInputStream == null) {
this.sourceInputStream = new ByteArrayOutputStream(); this.sourceInputStream = new ByteArrayOutputStream();
if (!bigFileCache.isCached(URL_SOURCE_DATABASE)) { if (!bigFileCache.isCached(URL_SOURCE_DATABASE)) {
logger.debug("downloading xls file with mirna");
try { try {
bigFileCache.downloadFile(URL_SOURCE_DATABASE, false, new IProgressUpdater() { bigFileCache.downloadFile(URL_SOURCE_DATABASE, false, new IProgressUpdater() {
@Override @Override
public void setProgress(double progress) { public void setProgress(double progress) {
logger.debug("Progress: " + progress);
} }
}); });
} catch (URISyntaxException e) { } catch (URISyntaxException e) {
throw new IOException("Problem with downloading file: " + URL_SOURCE_DATABASE, 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); String filename = bigFileCache.getAbsolutePathForFile(URL_SOURCE_DATABASE);
byte[] buffer = new byte[BUFFER_SIZE]; byte[] buffer = new byte[BUFFER_SIZE];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment