Commit 9dd5111f authored by Julien Michel's avatar Julien Michel

ENH: Use ConfigurationManager to configure log level in otb::Logger at instaciation time

parent 380c077e
......@@ -20,6 +20,7 @@
#include "otbLogger.h"
#include "itksys/SystemTools.hxx"
#include "otbConfigurationManager.h"
namespace otb
{
......@@ -37,11 +38,7 @@ Logger::Pointer Logger::Instance()
Logger::Logger()
{
#if OTB_DEBUG
this->SetPriorityLevel(itk::LoggerBase::DEBUG);
#else
this->SetPriorityLevel(itk::LoggerBase::INFO);
#endif
this->SetPriorityLevel(otb::ConfigurationManager::GetLoggerLevel());
this->SetLevelForFlushing(itk::LoggerBase::CRITICAL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment