From 051bdb4963227c1d5afb4c9431e94a63641d1f62 Mon Sep 17 00:00:00 2001 From: Julien Michel <julien.michel@cnes.fr> Date: Thu, 22 Feb 2018 16:36:10 +0100 Subject: [PATCH] ENH: Replace a few more traces --- .../ApplicationEngine/src/otbWrapperApplication.cxx | 5 ----- .../src/otbWrapperApplicationRegistry.cxx | 10 +--------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplication.cxx b/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplication.cxx index 4a7804d527..cc0790f406 100644 --- a/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplication.cxx +++ b/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplication.cxx @@ -1656,11 +1656,6 @@ Application::IsParameterMissing(const std::string &key) const } level++; } - if (ret) - { - // the missing parameter is on an active branch : we need it - otbDebugMacro("MISSING : "<< key << " (Level "<< split.size()<<")"); - } } return ret; } diff --git a/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplicationRegistry.cxx b/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplicationRegistry.cxx index f022af0ddb..f68d3a3923 100644 --- a/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplicationRegistry.cxx +++ b/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplicationRegistry.cxx @@ -211,10 +211,6 @@ ApplicationRegistry::CreateApplication(const std::string& name, bool useFactory) appli = app; appli->Init(); } - else - { - otbMsgDevMacro( << "Error ApplicationRegistry factory did not return an Application: " << possibleApp->GetNameOfClass() << std::endl ); - } } } @@ -350,10 +346,6 @@ ApplicationRegistry::GetAvailableApplications(bool useFactory) std::string curName(app->GetName()); appSet.insert(curName); } - else - { - otbMsgDevMacro( << "Error ApplicationRegistry factory did not return an Application: " << (*i)->GetNameOfClass() << std::endl ); - } } } @@ -438,7 +430,7 @@ ApplicationRegistry::LoadApplicationFromPath(std::string path,std::string name) } else { - otbMsgDevMacro( << "Can't load library : " << path << std::endl ); + otbLogMacro(Warning,<< "Failed to load libraries from " << path << " while trying to create application "<<name ); } } return appli; -- GitLab