changeset 249:7f5ee2b42a86

better performance warnings
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Apr 2021 10:07:14 +0200
parents 7a4f9bcb0bc2
children 29ac6f4a0f45
files Framework/Plugins/IndexBackend.cpp Framework/Plugins/StorageBackend.cpp
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Plugins/IndexBackend.cpp	Wed Apr 14 09:46:44 2021 +0200
+++ b/Framework/Plugins/IndexBackend.cpp	Wed Apr 14 10:07:14 2021 +0200
@@ -2467,7 +2467,7 @@
 
     if (!hasLoadedV3)
     {
-      LOG(WARNING) << "Performance warning: Your version of Orthanc doesn't support multiple readers/writers";
+      LOG(WARNING) << "Performance warning: Your version of the Orthanc SDK doesn't support multiple readers/writers";
       OrthancDatabases::DatabaseBackendAdapterV2::Register(backend);
     }
   }
--- a/Framework/Plugins/StorageBackend.cpp	Wed Apr 14 09:46:44 2021 +0200
+++ b/Framework/Plugins/StorageBackend.cpp	Wed Apr 14 10:07:14 2021 +0200
@@ -29,6 +29,7 @@
 #include "../../Framework/Common/ResultFileValue.h"
 
 #include <Compatibility.h>  // For std::unique_ptr<>
+#include <Logging.h>
 #include <OrthancException.h>
 
 #include <cassert>
@@ -587,6 +588,7 @@
 
       if (!hasLoadedV2)
       {
+        LOG(WARNING) << "Performance warning: Your version of the Orthanc SDK doesn't support reading of file ranges";
         OrthancPluginRegisterStorageArea(context_, StorageCreate, StorageRead, StorageRemove);
       }
     }