Mercurial > hg > orthanc
comparison Core/HttpClient.cpp @ 3114:0e75026a2c02
log libcurl error codes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 11 Jan 2019 11:34:58 +0100 |
parents | 4e43e67f8ecf |
children | df4f977c2f88 |
comparison
equal
deleted
inserted
replaced
3111:495ec3d3893d | 3114:0e75026a2c02 |
---|---|
60 code = curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, status); | 60 code = curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, status); |
61 return code; | 61 return code; |
62 } | 62 } |
63 else | 63 else |
64 { | 64 { |
65 LOG(INFO) << "Error code " << static_cast<int>(code) | |
66 << " in libcurl: " << curl_easy_strerror(code); | |
65 *status = 0; | 67 *status = 0; |
66 return code; | 68 return code; |
67 } | 69 } |
68 } | 70 } |
69 | 71 |