comparison OrthancServer/Sources/OrthancRestApi/OrthancRestApi.cpp @ 4294:0923247e69f6

log categories: rest -> http + added lua & jobs
author Alain Mazy <alain@mazy.be>
date Thu, 05 Nov 2020 11:43:32 +0100
parents 1661544ea94d
children a01b1c9cbef4
comparison
equal deleted inserted replaced
4293:29729b7eb6ab 4294:0923247e69f6
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 CLOG(INFO, REST) << "Receiving a DICOM file of " << call.GetBodySize() << " bytes through HTTP"; 116 CLOG(INFO, HTTP) << "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");