diff OrthancServer/Sources/ServerIndex.cpp @ 5467:68e9f7815fb8

Clarified recycle/reject + protection
author Alain Mazy <am@osimis.io>
date Mon, 18 Dec 2023 09:52:12 +0100
parents 9ffd6d18daf3
children 4b51cf06b697 48b8dae6dc77
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerIndex.cpp	Tue Dec 12 14:24:30 2023 +0100
+++ b/OrthancServer/Sources/ServerIndex.cpp	Mon Dec 18 09:52:12 2023 +0100
@@ -417,11 +417,17 @@
       
       if (mode == MaxStorageMode_Recycle)
       {
-        LOG(WARNING) << "Maximum Storage mode: Recycle";
+        if (maximumStorageSize_ > 0 || maximumPatients_ > 0)
+        {
+          LOG(WARNING) << "Maximum Storage mode: Recycle";
+        }
       }
       else
       {
-        LOG(WARNING) << "Maximum Storage mode: Reject";
+        if (maximumStorageSize_ > 0 || maximumPatients_ > 0)
+        {
+          LOG(WARNING) << "Maximum Storage mode: Reject";
+        }
       }
     }