changeset 35:9bdfa76c8923

merge
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 01 Jul 2020 16:10:12 +0200
parents 53dbed29949a (current diff) b9c536bf598b (diff)
children 8ada1b669194
files Plugin/Plugin.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Plugin/Plugin.cpp	Wed Jul 01 16:10:02 2020 +0200
+++ b/Plugin/Plugin.cpp	Wed Jul 01 16:10:12 2020 +0200
@@ -257,7 +257,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