diff Sources/Plugin.cpp @ 47:5117515503bf

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 17 May 2024 13:13:44 +0200
parents 8a1daa321afe
children a70fc4846be1
line wrap: on
line diff
--- a/Sources/Plugin.cpp	Sat Apr 06 17:19:16 2024 +0200
+++ b/Sources/Plugin.cpp	Fri May 17 13:13:44 2024 +0200
@@ -705,7 +705,7 @@
 {
   ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context)
   {
-    OrthancPlugins::SetGlobalContext(context);
+    OrthancPlugins::SetGlobalContext(context, ORTHANC_PLUGIN_NAME);
 
     /* Check the version of the Orthanc core */
     if (OrthancPluginCheckVersion(OrthancPlugins::GetGlobalContext()) == 0)
@@ -720,7 +720,9 @@
       return -1;
     }
 
-#if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 7, 2)
+#if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 12, 4)
+    Orthanc::Logging::InitializePluginContext(context, ORTHANC_PLUGIN_NAME);
+#elif ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 7, 2)
     Orthanc::Logging::InitializePluginContext(context);
 #else
     Orthanc::Logging::Initialize(context);
@@ -729,6 +731,7 @@
     Orthanc::InitializeFramework("", false);
 
     hasCreateDicomStl_ = OrthancPlugins::CheckMinimalOrthancVersion(1, 12, 1);
+    LOG(WARNING) << "Hello!";
 
     if (!hasCreateDicomStl_)
     {