diff 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
line wrap: on
line diff
--- a/Core/HttpClient.cpp	Fri Jan 11 10:59:49 2019 +0100
+++ b/Core/HttpClient.cpp	Fri Jan 11 11:34:58 2019 +0100
@@ -62,6 +62,8 @@
     }
     else
     {
+      LOG(INFO) << "Error code " << static_cast<int>(code)
+                << " in libcurl: " << curl_easy_strerror(code);
       *status = 0;
       return code;
     }