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

ENH: LogSetupInformation in CreateInstance is too invasive

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