changeset 265:af7108b06b4d

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 08 Jun 2020 18:05:15 +0200
parents 38e9bb57f761
children 4e9d30c19b4b
files Plugin/Plugin.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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();
   }