changeset 153:b0f20acf5793

merge
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 01 Jul 2020 08:54:43 +0200
parents 063aa53b5917 (current diff) 6c58af430ba0 (diff)
children 99d13f5b576a
files Framework/Plugins/PluginInitialization.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Plugins/PluginInitialization.cpp	Wed Jul 01 08:54:32 2020 +0200
+++ b/Framework/Plugins/PluginInitialization.cpp	Wed Jul 01 08:54:43 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);