comparison OrthancServer/Sources/OrthancRestApi/OrthancRestApi.cpp @ 4272:1661544ea94d

LogCategory_REST
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 03 Nov 2020 07:19:33 +0100
parents 05b8fd21089c
children 0923247e69f6
comparison
equal deleted inserted replaced
4271:1bd14c900699 4272:1661544ea94d
111 111
112 static void UploadDicomFile(RestApiPostCall& call) 112 static void UploadDicomFile(RestApiPostCall& call)
113 { 113 {
114 ServerContext& context = OrthancRestApi::GetContext(call); 114 ServerContext& context = OrthancRestApi::GetContext(call);
115 115
116 LOG(INFO) << "Receiving a DICOM file of " << call.GetBodySize() << " bytes through HTTP"; 116 CLOG(INFO, REST) << "Receiving a DICOM file of " << call.GetBodySize() << " bytes through HTTP";
117 117
118 if (call.GetBodySize() == 0) 118 if (call.GetBodySize() == 0)
119 { 119 {
120 throw OrthancException(ErrorCode_BadFileFormat, 120 throw OrthancException(ErrorCode_BadFileFormat,
121 "Received an empty DICOM file"); 121 "Received an empty DICOM file");