# HG changeset patch # User Sebastien Jodogne # Date 1593505750 -7200 # Node ID 6e832ff72a5eb0ccbdb5e546273fd3aa16c64b45 # Parent 8e5f69c94feaeec60e080586e36fd1fc13646870 improved Orthanc::Logging::Initialize() diff -r 8e5f69c94fea -r 6e832ff72a5e StoneWebViewer/Plugin/Plugin.cpp --- a/StoneWebViewer/Plugin/Plugin.cpp Tue Jun 30 07:58:56 2020 +0200 +++ b/StoneWebViewer/Plugin/Plugin.cpp Tue Jun 30 10:29:10 2020 +0200 @@ -163,7 +163,12 @@ ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) { OrthancPlugins::SetGlobalContext(context); + +#if defined(ORTHANC_FRAMEWORK_VERSION_IS_ABOVE) // This indicates Orthanc framework >= 1.7.2 Orthanc::Logging::InitializePluginContext(context); +#else + Orthanc::Logging::Initialize(context); +#endif /* Check the version of the Orthanc core */ if (OrthancPluginCheckVersion(context) == 0)