diff OrthancServer/Plugins/Samples/ModalityWorklists/Plugin.cpp @ 5563:e02cdf358905

fix plugin init wrt logging
author Alain Mazy <am@orthanc.team>
date Tue, 23 Apr 2024 10:26:48 +0200
parents 0b18690c1935
children f0dc99bc811c
line wrap: on
line diff
--- a/OrthancServer/Plugins/Samples/ModalityWorklists/Plugin.cpp	Tue Apr 23 09:34:02 2024 +0200
+++ b/OrthancServer/Plugins/Samples/ModalityWorklists/Plugin.cpp	Tue Apr 23 10:26:48 2024 +0200
@@ -214,7 +214,8 @@
 {
   ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* c)
   {
-    OrthancPlugins::SetGlobalContext(c);
+    Orthanc::Logging::InitializePluginContext(c, MODALITY_WORKLISTS_NAME);
+    OrthancPlugins::SetGlobalContext(c, MODALITY_WORKLISTS_NAME);
 
     /* Check the version of the Orthanc core */
     if (OrthancPluginCheckVersion(c) == 0)