From b5995eaee55908b9b973b31b1a8d120f51091ac6 Mon Sep 17 00:00:00 2001 From: Stuart Campbell <campbellsi@ornl.gov> Date: Thu, 7 Apr 2011 18:30:36 +0000 Subject: [PATCH] Add some debugging info. refs #2760 --- Code/Mantid/Framework/Kernel/src/FacilityInfo.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Code/Mantid/Framework/Kernel/src/FacilityInfo.cpp b/Code/Mantid/Framework/Kernel/src/FacilityInfo.cpp index 395ab2eace3..834d3a42747 100644 --- a/Code/Mantid/Framework/Kernel/src/FacilityInfo.cpp +++ b/Code/Mantid/Framework/Kernel/src/FacilityInfo.cpp @@ -151,6 +151,7 @@ const InstrumentInfo & FacilityInfo::Instrument(const std::string& iName)const if (iName.empty()) { iname = ConfigService::Instance().getString("default.instrument"); + g_log.debug() << "Blank instrument specified, using default instrument of " << iname << "." << std::endl; if (iname.empty()) { return m_instruments.front(); @@ -167,6 +168,7 @@ const InstrumentInfo & FacilityInfo::Instrument(const std::string& iName)const { if (it->name() == iname) { + g_log.debug() << "Instrument '" << iName << "' found as " << it->name() << " at " << name() << "." << std::endl; return *it; } } @@ -176,6 +178,7 @@ const InstrumentInfo & FacilityInfo::Instrument(const std::string& iName)const { if (it->shortName() == iname) { + g_log.debug() << "Instrument " << iName << " found as " << it->name() << " at " << name() << "." << std::endl; return *it; } } -- GitLab