Mercurial > hg > orthanc
diff OrthancServer/Sources/OrthancMoveRequestHandler.cpp @ 4287:5a3374b6e707
using CLOG in Orthanc DICOM handlers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 04 Nov 2020 17:48:11 +0100 |
parents | 067c679626a2 |
children | 91554aecff9a |
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancMoveRequestHandler.cpp Wed Nov 04 17:40:25 2020 +0100 +++ b/OrthancServer/Sources/OrthancMoveRequestHandler.cpp Wed Nov 04 17:48:11 2020 +0100 @@ -81,8 +81,8 @@ for (size_t i = 0; i < publicIds.size(); i++) { - LOG(INFO) << "Sending resource " << publicIds[i] << " to modality \"" - << targetAet << "\" in synchronous mode"; + CLOG(INFO, DICOM) << "Sending resource " << publicIds[i] << " to modality \"" + << targetAet << "\" in synchronous mode"; std::list<std::string> tmp; context_.GetIndex().GetChildInstances(tmp, publicIds[i]); @@ -162,8 +162,8 @@ for (size_t i = 0; i < publicIds.size(); i++) { - LOG(INFO) << "Sending resource " << publicIds[i] << " to modality \"" - << targetAet << "\" in asynchronous mode"; + CLOG(INFO, DICOM) << "Sending resource " << publicIds[i] << " to modality \"" + << targetAet << "\" in asynchronous mode"; std::list<std::string> tmp; context_.GetIndex().GetChildInstances(tmp, publicIds[i]); @@ -334,7 +334,7 @@ { MetricsRegistry::Timer timer(context_.GetMetricsRegistry(), "orthanc_move_scp_duration_ms"); - LOG(WARNING) << "Move-SCU request received for AET \"" << targetAet << "\""; + CLOG(WARNING, DICOM) << "Move-SCU request received for AET \"" << targetAet << "\""; { DicomArray query(input); @@ -342,9 +342,9 @@ { if (!query.GetElement(i).GetValue().IsNull()) { - LOG(INFO) << " " << query.GetElement(i).GetTag() - << " " << FromDcmtkBridge::GetTagName(query.GetElement(i)) - << " = " << query.GetElement(i).GetValue().GetContent(); + CLOG(INFO, DICOM) << " " << query.GetElement(i).GetTag() + << " " << FromDcmtkBridge::GetTagName(query.GetElement(i)) + << " = " << query.GetElement(i).GetValue().GetContent(); } } }