diff ViewerPlugin/Plugin.cpp @ 193:e690c265b315

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Jun 2020 10:10:55 +0200
parents f299c191cd76
children e57e6ca5303d
line wrap: on
line diff
--- a/ViewerPlugin/Plugin.cpp	Thu Jun 11 07:41:22 2020 +0200
+++ b/ViewerPlugin/Plugin.cpp	Tue Jun 30 10:10:55 2020 +0200
@@ -311,7 +311,11 @@
       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
 
     // Limit the number of PNG transcoders to the number of available
     // hardware threads (e.g. number of CPUs or cores or