diff OrthancServer/Sources/main.cpp @ 5237:cd2258ca7894 db-protobuf

log about missing support for labels
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Apr 2023 09:07:47 +0200
parents 345dac17a349
children 3de0235dedb6
line wrap: on
line diff
--- a/OrthancServer/Sources/main.cpp	Tue Apr 04 21:43:37 2023 +0200
+++ b/OrthancServer/Sources/main.cpp	Wed Apr 05 09:07:47 2023 +0200
@@ -1664,8 +1664,12 @@
     }
   }
 
-  bool success = ConfigureServerContext
-    (database, storageArea, plugins, loadJobsFromDatabase);
+  if (!database.HasLabelsSupport())
+  {
+    LOG(WARNING) << "The custom database back-end has *no* support for labels";
+  }
+
+  bool success = ConfigureServerContext(database, storageArea, plugins, loadJobsFromDatabase);
 
   database.Close();