Skip to content
Next Next commit
Improving CathInstallation logging
log slow downloads upon start
  • Loading branch information
sbliven committed Jun 4, 2018
commit 5c1a335d43cf951344bd359e8f2ddec0e88a932e
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ private void parseCathDomall(BufferedReader bufferedReader) throws IOException{

protected void downloadFileFromRemote(URL remoteURL, File localFile) throws IOException{
// System.out.println("downloading " + remoteURL + " to: " + localFile);
LOGGER.info("Downloaded file {} to local file {}", remoteURL, localFile);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be "Downloading"? It isn't downloaded at this point yet

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed


long timeS = System.currentTimeMillis();
File tempFile = File.createTempFile(FileDownloadUtils.getFilePrefix(localFile), "."+ FileDownloadUtils.getFileExtension(localFile));
Expand Down Expand Up @@ -665,7 +666,7 @@ protected void downloadFileFromRemote(URL remoteURL, File localFile) throws IOEx
disp = disp / 1024.0;
}
long timeE = System.currentTimeMillis();
LOGGER.info("Downloaded file {} ({}) to local file {} in {} sec.", remoteURL, String.format("%.1f",disp) + unit, localFile, (timeE - timeS)/1000);
LOGGER.info("Downloaded {} in {} sec. to {}", String.format("%.1f",disp) + unit, (timeE - timeS)/1000, localFile);
}

private boolean domainDescriptionFileAvailable(){
Expand Down