Mercurial > hg > orthanc
diff OrthancFramework/Sources/DicomNetworking/Internals/MoveScp.cpp @ 4286:526bd8bad850
debug logs for C-MOVE and C-GET SCP
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 04 Nov 2020 17:40:25 +0100 |
parents | 756126cd2219 |
children | 5b254bd435d3 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomNetworking/Internals/MoveScp.cpp Wed Nov 04 16:27:59 2020 +0100 +++ b/OrthancFramework/Sources/DicomNetworking/Internals/MoveScp.cpp Wed Nov 04 17:40:25 2020 +0100 @@ -158,6 +158,9 @@ DcmDataset **responseIdentifiers, DcmDataset **statusDetail) { + assert(response != NULL); + assert(requestIdentifiers != NULL); + bzero(response, sizeof(T_DIMSE_C_MoveRSP)); *statusDetail = NULL; *responseIdentifiers = NULL; @@ -165,6 +168,12 @@ MoveScpData& data = *reinterpret_cast<MoveScpData*>(callbackData); if (data.lastRequest_ == NULL) { + { + std::stringstream s; // This is necessary for VS2008 + s << DcmObject::PrintHelper(*requestIdentifiers); + CLOG(TRACE, DICOM) << "Received C-MOVE Request:" << std::endl << s.str(); + } + DicomMap input; std::set<DicomTag> ignoreTagLength; FromDcmtkBridge::ExtractDicomSummary(input, *requestIdentifiers, 0 /* don't truncate tags */, ignoreTagLength);