Skip to content
Snippets Groups Projects
Commit d13a8986 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

ENH: enhance logging for DoExecute and DoUpdateParameter

parent 00635543
No related branches found
No related tags found
No related merge requests found
......@@ -178,15 +178,31 @@ CompositeApplication
this->GetLogger()->Write( itk::LoggerBase::FATAL, std::string("\n") + m_Oss.str() );
throw;
}
otbAppLogINFO(<< "\n" << m_Oss.str());
m_Oss.str(std::string(""));
if(!m_Oss.str().empty())
{
otbAppLogINFO(<< "\n" << m_Oss.str());
m_Oss.str(std::string(""));
}
}
void
CompositeApplication
::UpdateInternalParameters(std::string key)
{
GetInternalApplication(key)->UpdateParameters();
try
{
GetInternalApplication(key)->UpdateParameters();
}
catch(...)
{
this->GetLogger()->Write( itk::LoggerBase::FATAL, std::string("\n") + m_Oss.str() );
throw;
}
if(!m_Oss.str().empty())
{
otbAppLogINFO(<< "\n" << m_Oss.str());
m_Oss.str(std::string(""));
}
}
} // end namespace Wrapper
......
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