From eac57fe59f9f02a39014ab3fcc1d2d1abd9d052e Mon Sep 17 00:00:00 2001
From: Janik Zikovsky <zikovskyjl@ornl.gov>
Date: Tue, 6 Dec 2011 16:22:51 -0500
Subject: [PATCH] Refs #3866: ConfigServiceTest passes even if you changed log
 level

on your local developer machine
---
 Code/Mantid/Framework/Kernel/test/ConfigServiceTest.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Code/Mantid/Framework/Kernel/test/ConfigServiceTest.h b/Code/Mantid/Framework/Kernel/test/ConfigServiceTest.h
index dcb567a693a..d18106515f0 100644
--- a/Code/Mantid/Framework/Kernel/test/ConfigServiceTest.h
+++ b/Code/Mantid/Framework/Kernel/test/ConfigServiceTest.h
@@ -28,6 +28,10 @@ public:
 
   void testLogging()
   {
+
+    // Force the setting to "notice" in case the developer uses a different level.
+    Mantid::Kernel::Logger::setLevelForAll(Poco::Message::PRIO_NOTICE);
+
     //attempt some logging
     Logger& log1 = Logger::get("logTest");
 
@@ -53,7 +57,7 @@ public:
     //therefore this should only return false for debug
     TS_ASSERT(log1.is(Poco::Message::PRIO_DEBUG) == false); //debug
     TS_ASSERT(log1.is(Poco::Message::PRIO_INFORMATION)==false); //information
-    TS_ASSERT(log1.is(Poco::Message::PRIO_NOTICE)); //information
+    TS_ASSERT(log1.is(Poco::Message::PRIO_NOTICE)); //notice
     TS_ASSERT(log1.is(Poco::Message::PRIO_WARNING)); //warning
     TS_ASSERT(log1.is(Poco::Message::PRIO_ERROR)); //error
     TS_ASSERT(log1.is(Poco::Message::PRIO_FATAL)); //fatal
-- 
GitLab