comparison 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
comparison
equal deleted inserted replaced
3163:cf91b6f22278 3164:b79ec21747a1
1119 HttpClient::SetDefaultProxy(lock.GetConfiguration().GetStringParameter("HttpProxy", "")); 1119 HttpClient::SetDefaultProxy(lock.GetConfiguration().GetStringParameter("HttpProxy", ""));
1120 1120
1121 DicomUserConnection::SetDefaultTimeout(lock.GetConfiguration().GetUnsignedIntegerParameter("DicomScuTimeout", 10)); 1121 DicomUserConnection::SetDefaultTimeout(lock.GetConfiguration().GetUnsignedIntegerParameter("DicomScuTimeout", 10));
1122 1122
1123 maxCompletedJobs = lock.GetConfiguration().GetUnsignedIntegerParameter("JobsHistorySize", 10); 1123 maxCompletedJobs = lock.GetConfiguration().GetUnsignedIntegerParameter("JobsHistorySize", 10);
1124
1125 if (maxCompletedJobs == 0)
1126 {
1127 LOG(WARNING) << "Setting option \"JobsHistorySize\" to zero is not recommended";
1128 }
1124 } 1129 }
1125 1130
1126 ServerContext context(database, storageArea, false /* not running unit tests */, maxCompletedJobs); 1131 ServerContext context(database, storageArea, false /* not running unit tests */, maxCompletedJobs);
1127 1132
1128 { 1133 {