changeset 270:5931c2ff22ca

improved log
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 21 Apr 2021 17:56:43 +0200
parents 567761f0c1ea
children 6b18d3fbee82
files Framework/Plugins/StorageBackend.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Plugins/StorageBackend.cpp	Wed Apr 21 17:54:31 2021 +0200
+++ b/Framework/Plugins/StorageBackend.cpp	Wed Apr 21 17:56:43 2021 +0200
@@ -673,9 +673,6 @@
 #  if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 9, 0)
       if (OrthancPluginCheckVersionAdvanced(context, 1, 9, 0) == 1)
       {
-        LOG(WARNING) << "The storage area plugin will retry up to " << backend_->GetMaxRetries()
-                     << " time(s) in the case of a collision";
-
         OrthancPluginStorageReadRange readRange = NULL;
         if (backend_->HasReadRange())
         {
@@ -693,6 +690,9 @@
         LOG(WARNING) << "Performance warning: Your version of the Orthanc core doesn't support reading of file ranges";
         OrthancPluginRegisterStorageArea(context_, StorageCreate, StorageRead, StorageRemove);
       }
+
+      LOG(WARNING) << "The storage area plugin will retry up to " << backend_->GetMaxRetries()
+                   << " time(s) in the case of a collision";
     }
   }