Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomNetworking/Internals/MoveScp.cpp @ 4284:756126cd2219
moving all logs from DicomNetworking folder into the "dicom" category
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 04 Nov 2020 15:01:47 +0100 |
parents | 6774605d4341 |
children | 526bd8bad850 |
comparison
equal
deleted
inserted
replaced
4283:6b58ceed959e | 4284:756126cd2219 |
---|---|
134 return static_cast<uint16_t>(tmp); | 134 return static_cast<uint16_t>(tmp); |
135 } | 135 } |
136 } | 136 } |
137 catch (boost::bad_lexical_cast&) | 137 catch (boost::bad_lexical_cast&) |
138 { | 138 { |
139 LOG(WARNING) << "Cannot convert the Message ID (\"" << value->GetContent() | 139 CLOG(WARNING, DICOM) << "Cannot convert the Message ID (\"" << value->GetContent() |
140 << "\") of an incoming C-MOVE request to an integer, assuming zero"; | 140 << "\") of an incoming C-MOVE request to an integer, assuming zero"; |
141 } | 141 } |
142 } | 142 } |
143 | 143 |
144 return 0; | 144 return 0; |
145 } | 145 } |
193 data.warningCount_ = 0; | 193 data.warningCount_ = 0; |
194 } | 194 } |
195 catch (OrthancException& e) | 195 catch (OrthancException& e) |
196 { | 196 { |
197 // Internal error! | 197 // Internal error! |
198 LOG(ERROR) << "IMoveRequestHandler Failed: " << e.What(); | 198 CLOG(ERROR, DICOM) << "IMoveRequestHandler Failed: " << e.What(); |
199 response->DimseStatus = STATUS_MOVE_Failed_UnableToProcess; | 199 response->DimseStatus = STATUS_MOVE_Failed_UnableToProcess; |
200 return; | 200 return; |
201 } | 201 } |
202 | 202 |
203 data.lastRequest_ = requestIdentifiers; | 203 data.lastRequest_ = requestIdentifiers; |
222 status = data.iterator_->DoNext(); | 222 status = data.iterator_->DoNext(); |
223 } | 223 } |
224 catch (OrthancException& e) | 224 catch (OrthancException& e) |
225 { | 225 { |
226 // Internal error! | 226 // Internal error! |
227 LOG(ERROR) << "IMoveRequestHandler Failed: " << e.What(); | 227 CLOG(ERROR, DICOM) << "IMoveRequestHandler Failed: " << e.What(); |
228 response->DimseStatus = STATUS_MOVE_Failed_UnableToProcess; | 228 response->DimseStatus = STATUS_MOVE_Failed_UnableToProcess; |
229 return; | 229 return; |
230 } | 230 } |
231 | 231 |
232 if (status == IMoveRequestIterator::Status_Failure) | 232 if (status == IMoveRequestIterator::Status_Failure) |
280 | 280 |
281 // if some error occured, dump corresponding information and remove the outfile if necessary | 281 // if some error occured, dump corresponding information and remove the outfile if necessary |
282 if (cond.bad()) | 282 if (cond.bad()) |
283 { | 283 { |
284 OFString temp_str; | 284 OFString temp_str; |
285 LOG(ERROR) << "Move SCP Failed: " << cond.text(); | 285 CLOG(ERROR, DICOM) << "Move SCP Failed: " << cond.text(); |
286 } | 286 } |
287 | 287 |
288 return cond; | 288 return cond; |
289 } | 289 } |
290 } | 290 } |