import: turn on HTTP logging in debug mode

This commit is contained in:
Lennart Poettering
2021-01-19 18:29:59 +01:00
parent 273cb07d1b
commit 8dc0291c0d
+2 -1
View File
@@ -231,7 +231,8 @@ int curl_glue_make(CURL **ret, const char *url, void *userdata) {
if (!c)
return -ENOMEM;
/* curl_easy_setopt(c, CURLOPT_VERBOSE, 1L); */
if (DEBUG_LOGGING)
(void) curl_easy_setopt(c, CURLOPT_VERBOSE, 1L);
if (curl_easy_setopt(c, CURLOPT_URL, url) != CURLE_OK)
return -EIO;