Mercurial > hg > orthanc
changeset 3164:b79ec21747a1
warning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 24 Jan 2019 18:06:13 +0100 |
parents | cf91b6f22278 |
children | 1fe524e211af |
files | OrthancServer/main.cpp |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
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);