Mercurial > hg > orthanc-databases
changeset 151:6c58af430ba0
improved Orthanc::Logging::Initialize()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Jun 2020 10:38:04 +0200 |
parents | d9101318442d |
children | b0f20acf5793 |
files | Framework/Plugins/PluginInitialization.cpp |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/Plugins/PluginInitialization.cpp Mon Jun 29 19:22:34 2020 +0200 +++ b/Framework/Plugins/PluginInitialization.cpp Tue Jun 30 10:38:04 2020 +0200 @@ -45,7 +45,12 @@ const std::string& dbms, bool isIndex) { +#if defined(ORTHANC_FRAMEWORK_VERSION_IS_ABOVE) // This indicates Orthanc framework >= 1.7.2 Orthanc::Logging::InitializePluginContext(context); +#else + Orthanc::Logging::Initialize(context); +#endif + OrthancPlugins::SetGlobalContext(context); ImplicitTransaction::SetErrorOnDoubleExecution(false);