Mercurial > hg > orthanc
comparison OrthancServer/Sources/OrthancGetRequestHandler.cpp @ 4669:b14989f9ff8b
fix misleading log message about unknown transfer syntax in C-GET SCP
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 28 May 2021 11:40:47 +0200 |
parents | 8efeaba1b7f9 |
children | f0038043fb97 753f87dac208 |
comparison
equal
deleted
inserted
replaced
4668:9210e196cd98 | 4669:b14989f9ff8b |
---|---|
146 DUL_PRESENTATIONCONTEXT* pc = (DUL_PRESENTATIONCONTEXT*) LST_Head(l); | 146 DUL_PRESENTATIONCONTEXT* pc = (DUL_PRESENTATIONCONTEXT*) LST_Head(l); |
147 LST_Position(l, (LST_NODE*)pc); | 147 LST_Position(l, (LST_NODE*)pc); |
148 while (pc) | 148 while (pc) |
149 { | 149 { |
150 DicomTransferSyntax transferSyntax; | 150 DicomTransferSyntax transferSyntax; |
151 if (pc->result == ASC_P_ACCEPTANCE && | 151 if (pc->result == ASC_P_ACCEPTANCE) |
152 LookupTransferSyntax(transferSyntax, pc->acceptedTransferSyntax)) | |
153 { | 152 { |
154 /*CLOG(TRACE, DICOM) << "C-GET SCP accepted: SOP class " << pc->abstractSyntax | 153 if (LookupTransferSyntax(transferSyntax, pc->acceptedTransferSyntax)) |
155 << " with transfer syntax " << GetTransferSyntaxUid(transferSyntax);*/ | |
156 if (std::string(pc->abstractSyntax) == sopClassUid) | |
157 { | 154 { |
158 accepted[transferSyntax] = pc->presentationContextID; | 155 /*CLOG(TRACE, DICOM) << "C-GET SCP accepted: SOP class " << pc->abstractSyntax |
156 << " with transfer syntax " << GetTransferSyntaxUid(transferSyntax);*/ | |
157 if (std::string(pc->abstractSyntax) == sopClassUid) | |
158 { | |
159 accepted[transferSyntax] = pc->presentationContextID; | |
160 } | |
159 } | 161 } |
160 } | 162 else |
161 else | 163 { |
162 { | 164 CLOG(WARNING, DICOM) << "C-GET: Unknown transfer syntax received: " |
163 CLOG(WARNING, DICOM) << "C-GET: Unknown transfer syntax received: " | 165 << pc->acceptedTransferSyntax; |
164 << pc->acceptedTransferSyntax; | 166 } |
165 } | 167 } |
166 | 168 |
167 pc = (DUL_PRESENTATIONCONTEXT*) LST_Next(l); | 169 pc = (DUL_PRESENTATIONCONTEXT*) LST_Next(l); |
168 } | 170 } |
169 } | 171 } |