Commit dd99b298 authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: LogSetupInformation in CreateInstance is too invasive

parent ac991f09
......@@ -38,9 +38,6 @@ Logger::Pointer Logger::CreateInstance()
defaultOutput->SetStream(std::cout);
instance->AddLogOutput(defaultOutput);
// Log setup information
instance->LogSetupInformation();
return instance;
}
......
......@@ -28,7 +28,7 @@
#include <iostream>
#include "itkMultiThreader.h"
#include "itkMacro.h"
#include "otbMacro.h"
#include "otbOGRDriversInit.h"
#include "otbTestHelper.h"
......@@ -298,6 +298,7 @@ int main(int ac, char* av[])
}
else
{
otb::Logger::Instance()->LogSetupInformation();
MainFuncPointer f = j->second;
int result;
try
......
......@@ -645,6 +645,8 @@ int Application::ExecuteAndWriteOutput()
{
m_Chrono.Restart();
m_Logger->LogSetupInformation();
int status = this->Execute();
if (status == 0)
......
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