Mercurial > hg > orthanc
diff OrthancServer/main.cpp @ 3164:b79ec21747a1
warning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 24 Jan 2019 18:06:13 +0100 |
parents | af4fab776ff2 |
children | 07a2f637b76d |
line wrap: on
line diff
--- 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);