changeset 19:4ae1ea2e0398

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Jun 2020 09:19:55 +0200
parents 76aa2fc476d9
children bfcd389795c3
files Plugin/Plugin.cpp
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Plugin/Plugin.cpp	Tue Jun 09 07:31:13 2020 +0200
+++ b/Plugin/Plugin.cpp	Tue Jun 09 09:19:55 2020 +0200
@@ -401,7 +401,17 @@
     try
     {
       OrthancPlugins::SetGlobalContext(context);
+
+#if defined(ORTHANC_FRAMEWORK_VERSION_IS_ABOVE)
+#  if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 7, 2)
       Orthanc::Logging::InitializePluginContext(context);
+#  else
+      Orthanc::Logging::Initialize(context);
+#  endif
+#else
+      Orthanc::Logging::Initialize(context);
+#endif
+      
       LOG(INFO) << "Initializing the decoder/transcoder of medical images using GDCM";
 
       /* Check the version of the Orthanc core */