# HG changeset patch # User Sebastien Jodogne # Date 1593504956 -7200 # Node ID 7c8dfa7522429369a16e1811f23d8467a9f81fe0 # Parent 17f775299b4a7ef61149f6816409e73efe09d724 improved Orthanc::Logging::Initialize() diff -r 17f775299b4a -r 7c8dfa752242 Plugin/Plugin.cpp --- a/Plugin/Plugin.cpp Tue Jun 30 07:52:24 2020 +0200 +++ b/Plugin/Plugin.cpp Tue Jun 30 10:15:56 2020 +0200 @@ -616,7 +616,12 @@ { ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* 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 + assert(DisplayPerformanceWarning()); OrthancPlugins::SetGlobalContext(context);