# HG changeset patch # User Sebastien Jodogne # Date 1548349573 -3600 # Node ID b79ec21747a155770756129039cd5ea07c3e421e # Parent cf91b6f222784a9664961569f76ace9d47d52231 warning diff -r cf91b6f22278 -r b79ec21747a1 OrthancServer/main.cpp --- a/OrthancServer/main.cpp Thu Jan 24 18:04:55 2019 +0100 +++ b/OrthancServer/main.cpp Thu Jan 24 18:06:13 2019 +0100 @@ -1121,6 +1121,11 @@ DicomUserConnection::SetDefaultTimeout(lock.GetConfiguration().GetUnsignedIntegerParameter("DicomScuTimeout", 10)); maxCompletedJobs = lock.GetConfiguration().GetUnsignedIntegerParameter("JobsHistorySize", 10); + + if (maxCompletedJobs == 0) + { + LOG(WARNING) << "Setting option \"JobsHistorySize\" to zero is not recommended"; + } } ServerContext context(database, storageArea, false /* not running unit tests */, maxCompletedJobs);