Mercurial > hg > orthanc-webviewer
comparison Plugin/Plugin.cpp @ 265:af7108b06b4d
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 08 Jun 2020 18:05:15 +0200 |
parents | 620ed85fb514 |
children | 4e9d30c19b4b |
comparison
equal
deleted
inserted
replaced
264:38e9bb57f761 | 265:af7108b06b4d |
---|---|
393 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) | 393 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) |
394 { | 394 { |
395 using namespace OrthancPlugins; | 395 using namespace OrthancPlugins; |
396 | 396 |
397 OrthancPlugins::SetGlobalContext(context); | 397 OrthancPlugins::SetGlobalContext(context); |
398 Orthanc::Logging::Initialize(context); | 398 Orthanc::Logging::InitializePluginContext(context); |
399 context_ = context; | 399 context_ = context; |
400 assert(DisplayPerformanceWarning()); | 400 assert(DisplayPerformanceWarning()); |
401 LOG(WARNING) << "Initializing the Web viewer"; | 401 LOG(WARNING) << "Initializing the Web viewer"; |
402 | 402 |
403 | 403 |
544 if (cache_ != NULL) | 544 if (cache_ != NULL) |
545 { | 545 { |
546 delete cache_; | 546 delete cache_; |
547 cache_ = NULL; | 547 cache_ = NULL; |
548 } | 548 } |
549 | |
550 Orthanc::Logging::Finalize(); | |
549 } | 551 } |
550 | 552 |
551 | 553 |
552 ORTHANC_PLUGINS_API const char* OrthancPluginGetName() | 554 ORTHANC_PLUGINS_API const char* OrthancPluginGetName() |
553 { | 555 { |