changeset 33:b9c536bf598b

improved Orthanc::Logging::Initialize()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Jun 2020 10:23:59 +0200
parents 79d871605ffd
children 9bdfa76c8923
files Plugin/Plugin.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Plugin/Plugin.cpp	Tue Jun 30 07:38:31 2020 +0200
+++ b/Plugin/Plugin.cpp	Tue Jun 30 10:23:59 2020 +0200
@@ -256,7 +256,12 @@
       return -1;
     }
 
+#if defined(ORTHANC_FRAMEWORK_VERSION_IS_ABOVE)  // This indicates Orthanc framework >= 1.7.2
     Orthanc::Logging::InitializePluginContext(context);
+#else
+    Orthanc::Logging::Initialize(context);
+#endif
+    
     OrthancPluginSetDescription(context, "Advanced authorization plugin for Orthanc.");
 
     try