Mercurial > hg > orthanc
diff OrthancServer/Plugins/Samples/Housekeeper/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 | 823aae1ea72a |
line wrap: on
line diff
--- a/OrthancServer/Plugins/Samples/Housekeeper/Plugin.cpp Tue Apr 23 09:34:02 2024 +0200 +++ b/OrthancServer/Plugins/Samples/Housekeeper/Plugin.cpp Tue Apr 23 10:26:48 2024 +0200 @@ -795,7 +795,8 @@ ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* c) { - OrthancPlugins::SetGlobalContext(c); + OrthancPlugins::SetGlobalContext(c, HOUSEKEEPER_NAME); + Orthanc::Logging::InitializePluginContext(c, HOUSEKEEPER_NAME); /* Check the version of the Orthanc core */ if (OrthancPluginCheckVersion(c) == 0)