comparison OrthancServer/Sources/ServerIndex.cpp @ 4268:0ae2ca210077

new macro TLOG() to replace VLOG() for trace logs with a category
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Nov 2020 14:48:15 +0100
parents 61a2bedbae80
children 4a3ba4bf4ba7
comparison
equal deleted inserted replaced
4267:a20928107a90 4268:0ae2ca210077
176 } 176 }
177 177
178 virtual void SignalRemainingAncestor(ResourceType parentType, 178 virtual void SignalRemainingAncestor(ResourceType parentType,
179 const std::string& publicId) 179 const std::string& publicId)
180 { 180 {
181 VLOG(1) << "Remaining ancestor \"" << publicId << "\" (" << parentType << ")"; 181 LOG(TRACE) << "Remaining ancestor \"" << publicId << "\" (" << parentType << ")";
182 182
183 if (hasRemainingLevel_) 183 if (hasRemainingLevel_)
184 { 184 {
185 if (parentType < remainingType_) 185 if (parentType < remainingType_)
186 { 186 {
203 sizeOfFilesToRemove_ += info.GetCompressedSize(); 203 sizeOfFilesToRemove_ += info.GetCompressedSize();
204 } 204 }
205 205
206 virtual void SignalChange(const ServerIndexChange& change) 206 virtual void SignalChange(const ServerIndexChange& change)
207 { 207 {
208 VLOG(1) << "Change related to resource " << change.GetPublicId() << " of type " 208 LOG(TRACE) << "Change related to resource " << change.GetPublicId() << " of type "
209 << EnumerationToString(change.GetResourceType()) << ": " 209 << EnumerationToString(change.GetResourceType()) << ": "
210 << EnumerationToString(change.GetChangeType()); 210 << EnumerationToString(change.GetChangeType());
211 211
212 if (insideTransaction_) 212 if (insideTransaction_)
213 { 213 {
214 pendingChanges_.push_back(change); 214 pendingChanges_.push_back(change);
215 } 215 }
1613 if (!ok) 1613 if (!ok)
1614 { 1614 {
1615 throw OrthancException(ErrorCode_FullStorage); 1615 throw OrthancException(ErrorCode_FullStorage);
1616 } 1616 }
1617 1617
1618 VLOG(1) << "Recycling one patient"; 1618 LOG(TRACE) << "Recycling one patient";
1619 db_.DeleteResource(patientToRecycle); 1619 db_.DeleteResource(patientToRecycle);
1620 1620
1621 if (!IsRecyclingNeeded(instanceSize)) 1621 if (!IsRecyclingNeeded(instanceSize))
1622 { 1622 {
1623 // OK, we're done 1623 // OK, we're done