Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerJobs/LuaJobManager.cpp @ 4295:90f91b78d708
applied log categories
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Thu, 05 Nov 2020 12:01:11 +0100 |
parents | 05b8fd21089c |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4294:0923247e69f6 | 4295:90f91b78d708 |
---|---|
74 OrthancConfiguration::ReaderLock lock; | 74 OrthancConfiguration::ReaderLock lock; |
75 dicomTimeout = lock.GetConfiguration().GetUnsignedIntegerParameter("DicomAssociationCloseDelay", 5); | 75 dicomTimeout = lock.GetConfiguration().GetUnsignedIntegerParameter("DicomAssociationCloseDelay", 5); |
76 } | 76 } |
77 | 77 |
78 connectionManager_.SetInactivityTimeout(dicomTimeout * 1000); // Milliseconds expected | 78 connectionManager_.SetInactivityTimeout(dicomTimeout * 1000); // Milliseconds expected |
79 LOG(INFO) << "Lua: DICOM associations will be closed after " | 79 CLOG(INFO, LUA) << "Lua: DICOM associations will be closed after " |
80 << dicomTimeout << " seconds of inactivity"; | 80 << dicomTimeout << " seconds of inactivity"; |
81 } | 81 } |
82 | 82 |
83 | 83 |
84 void LuaJobManager::SetMaxOperationsPerJob(size_t count) | 84 void LuaJobManager::SetMaxOperationsPerJob(size_t count) |
85 { | 85 { |
104 | 104 |
105 void LuaJobManager::AwakeTrailingSleep() | 105 void LuaJobManager::AwakeTrailingSleep() |
106 { | 106 { |
107 boost::mutex::scoped_lock lock(mutex_); | 107 boost::mutex::scoped_lock lock(mutex_); |
108 | 108 |
109 LOG(INFO) << "Awaking trailing sleep"; | 109 CLOG(INFO, LUA) << "Awaking trailing sleep"; |
110 | 110 |
111 if (currentJob_ != NULL) | 111 if (currentJob_ != NULL) |
112 { | 112 { |
113 currentJob_->AwakeTrailingSleep(); | 113 currentJob_->AwakeTrailingSleep(); |
114 } | 114 } |