diff Framework/Plugins/StorageBackend.cpp @ 249:7f5ee2b42a86

better performance warnings
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Apr 2021 10:07:14 +0200
parents 483af3f35a4b
children 33fa478c119a
line wrap: on
line diff
--- 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);
       }
     }