Skip to content

Commit

Permalink
Improved debug information in getDatasetID. Refs #9223.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Apr 23, 2014
1 parent dfb7657 commit e6865fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Code/Mantid/Framework/ICat/src/ICat4/ICat4Catalog.cpp
Expand Up @@ -851,11 +851,12 @@ namespace Mantid

std::string query = "Dataset <-> Investigation[name = '" + investigationID + "']";
request.query = &query;

std::string sessionID = m_session->getSessionId();
request.sessionId = &sessionID;

g_log.debug() << "The query performed to obtain a dataset from an investigation" <<
" id in ICat4Catalog::getDatasetIdFromFileName is:\n" << query << std::endl;
g_log.debug() << "The query performed to obtain a dataset from an investigation id " <<
"in ICat4Catalog::getDatasetId is: " << query << std::endl;

int64_t datasetID = 0;

Expand All @@ -870,6 +871,7 @@ namespace Mantid
}
ns1__dataset * dataset = dynamic_cast<ns1__dataset*>(response.return_.at(0));
if (dataset && dataset->id) datasetID = *(dataset->id);
g_log.debug() << "The name of the dataset related to " << investigationID << " is: " << *(dataset->name) << "\n";
}
else
{
Expand Down

0 comments on commit e6865fc

Please sign in to comment.