comparison 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
comparison
equal deleted inserted replaced
4285:544120b34c09 4286:526bd8bad850
156 /* out */ 156 /* out */
157 T_DIMSE_C_MoveRSP *response, 157 T_DIMSE_C_MoveRSP *response,
158 DcmDataset **responseIdentifiers, 158 DcmDataset **responseIdentifiers,
159 DcmDataset **statusDetail) 159 DcmDataset **statusDetail)
160 { 160 {
161 assert(response != NULL);
162 assert(requestIdentifiers != NULL);
163
161 bzero(response, sizeof(T_DIMSE_C_MoveRSP)); 164 bzero(response, sizeof(T_DIMSE_C_MoveRSP));
162 *statusDetail = NULL; 165 *statusDetail = NULL;
163 *responseIdentifiers = NULL; 166 *responseIdentifiers = NULL;
164 167
165 MoveScpData& data = *reinterpret_cast<MoveScpData*>(callbackData); 168 MoveScpData& data = *reinterpret_cast<MoveScpData*>(callbackData);
166 if (data.lastRequest_ == NULL) 169 if (data.lastRequest_ == NULL)
167 { 170 {
171 {
172 std::stringstream s; // This is necessary for VS2008
173 s << DcmObject::PrintHelper(*requestIdentifiers);
174 CLOG(TRACE, DICOM) << "Received C-MOVE Request:" << std::endl << s.str();
175 }
176
168 DicomMap input; 177 DicomMap input;
169 std::set<DicomTag> ignoreTagLength; 178 std::set<DicomTag> ignoreTagLength;
170 FromDcmtkBridge::ExtractDicomSummary(input, *requestIdentifiers, 0 /* don't truncate tags */, ignoreTagLength); 179 FromDcmtkBridge::ExtractDicomSummary(input, *requestIdentifiers, 0 /* don't truncate tags */, ignoreTagLength);
171 180
172 try 181 try