changeset 572:cf4b4a323b26

display warning message about performance
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 27 Jun 2023 14:44:43 +0200
parents c56c1037f1d1
children 7fff8bc414e3
files Plugin/Plugin.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Plugin/Plugin.cpp	Tue Jun 27 09:16:02 2023 +0200
+++ b/Plugin/Plugin.cpp	Tue Jun 27 14:44:43 2023 +0200
@@ -537,6 +537,11 @@
                  << "Orthanc SDK <= 1.5.6. STOW and WADO chunked transfers will be entirely stored in RAM.";
 #endif
 
+#if !ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 1)
+    LOG(WARNING) << "Performance warning in DICOMweb: The plugin was compiled against "
+                 << "Orthanc SDK <= 1.12.0. Retrieving metadata will be slower.";
+#endif
+
     OrthancPluginSetDescription(context, "Implementation of DICOMweb (QIDO-RS, STOW-RS and WADO-RS) and WADO-URI.");
 
     try