Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerIndex.cpp Sun Nov 01 12:43:18 2020 +0100 +++ b/OrthancServer/Sources/ServerIndex.cpp Mon Nov 02 14:48:15 2020 +0100 @@ -178,7 +178,7 @@ virtual void SignalRemainingAncestor(ResourceType parentType, const std::string& publicId) { - VLOG(1) << "Remaining ancestor \"" << publicId << "\" (" << parentType << ")"; + LOG(TRACE) << "Remaining ancestor \"" << publicId << "\" (" << parentType << ")"; if (hasRemainingLevel_) { @@ -205,9 +205,9 @@ virtual void SignalChange(const ServerIndexChange& change) { - VLOG(1) << "Change related to resource " << change.GetPublicId() << " of type " - << EnumerationToString(change.GetResourceType()) << ": " - << EnumerationToString(change.GetChangeType()); + LOG(TRACE) << "Change related to resource " << change.GetPublicId() << " of type " + << EnumerationToString(change.GetResourceType()) << ": " + << EnumerationToString(change.GetChangeType()); if (insideTransaction_) { @@ -1615,7 +1615,7 @@ throw OrthancException(ErrorCode_FullStorage); } - VLOG(1) << "Recycling one patient"; + LOG(TRACE) << "Recycling one patient"; db_.DeleteResource(patientToRecycle); if (!IsRecyclingNeeded(instanceSize))