Skip to content

Commit

Permalink
Improved logging messages in CatlogDownloadDataFiles. Refs #8939.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Feb 17, 2014
1 parent c7b9b67 commit 0b65f79
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Code/Mantid/Framework/ICat/src/CatalogDownloadDataFiles.cpp
Expand Up @@ -99,13 +99,13 @@ namespace Mantid
std::ifstream hasAccessToArchives(fileLocation.c_str());
if(hasAccessToArchives)
{
g_log.information() << "File (" << *fileName << ") located in archives (" << fileLocation << ")." << std::endl;

g_log.notice() << "The file (" << *fileName << ") that you have selected is located in the archives at ("
<< fileLocation << "If you wish to transfer this file from the archives to your hard-drive please do this manually." << std::endl;
fileLocations.push_back(fileLocation);
}
else
{
g_log.information() << "Unable to open file (" << *fileName << ") from archive. Beginning to download over Internet." << std::endl;
g_log.notice() << "Unable to open " << *fileName << " from archives. Beginning to download over Internet." << std::endl;

progress(prog/2,"getting the url ....");

Expand All @@ -117,6 +117,8 @@ namespace Mantid

std::string fullPathDownloadedFile = doDownloadandSavetoLocalDrive(url,*fileName);

g_log.notice() << "File: " << *fileName << "downloaded and saved to: " << fullPathDownloadedFile << "\n";

fileLocations.push_back(fullPathDownloadedFile);
}
}
Expand Down

0 comments on commit 0b65f79

Please sign in to comment.