Skip to content
Snippets Groups Projects
Commit b5995eae authored by Campbell, Stuart's avatar Campbell, Stuart
Browse files

Add some debugging info. refs #2760

parent a599f2cd
No related branches found
No related tags found
No related merge requests found
...@@ -151,6 +151,7 @@ const InstrumentInfo & FacilityInfo::Instrument(const std::string& iName)const ...@@ -151,6 +151,7 @@ const InstrumentInfo & FacilityInfo::Instrument(const std::string& iName)const
if (iName.empty()) if (iName.empty())
{ {
iname = ConfigService::Instance().getString("default.instrument"); iname = ConfigService::Instance().getString("default.instrument");
g_log.debug() << "Blank instrument specified, using default instrument of " << iname << "." << std::endl;
if (iname.empty()) if (iname.empty())
{ {
return m_instruments.front(); return m_instruments.front();
...@@ -167,6 +168,7 @@ const InstrumentInfo & FacilityInfo::Instrument(const std::string& iName)const ...@@ -167,6 +168,7 @@ const InstrumentInfo & FacilityInfo::Instrument(const std::string& iName)const
{ {
if (it->name() == iname) if (it->name() == iname)
{ {
g_log.debug() << "Instrument '" << iName << "' found as " << it->name() << " at " << name() << "." << std::endl;
return *it; return *it;
} }
} }
...@@ -176,6 +178,7 @@ const InstrumentInfo & FacilityInfo::Instrument(const std::string& iName)const ...@@ -176,6 +178,7 @@ const InstrumentInfo & FacilityInfo::Instrument(const std::string& iName)const
{ {
if (it->shortName() == iname) if (it->shortName() == iname)
{ {
g_log.debug() << "Instrument " << iName << " found as " << it->name() << " at " << name() << "." << std::endl;
return *it; return *it;
} }
} }
......
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