# HG changeset patch # User Sebastien Jodogne # Date 1591632315 -7200 # Node ID af7108b06b4d882e3b80ae4f553912220a85a178 # Parent 38e9bb57f761681c793ca85825b7e3f9457ee541 fix diff -r 38e9bb57f761 -r af7108b06b4d Plugin/Plugin.cpp --- a/Plugin/Plugin.cpp Sat Jun 06 11:37:56 2020 +0200 +++ b/Plugin/Plugin.cpp Mon Jun 08 18:05:15 2020 +0200 @@ -395,7 +395,7 @@ using namespace OrthancPlugins; OrthancPlugins::SetGlobalContext(context); - Orthanc::Logging::Initialize(context); + Orthanc::Logging::InitializePluginContext(context); context_ = context; assert(DisplayPerformanceWarning()); LOG(WARNING) << "Initializing the Web viewer"; @@ -546,6 +546,8 @@ delete cache_; cache_ = NULL; } + + Orthanc::Logging::Finalize(); }