]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
import: turn on HTTP logging in debug mode
authorLennart Poettering <lennart@poettering.net>
Fri, 15 Jan 2021 21:54:42 +0000 (22:54 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 19 Jan 2021 17:29:59 +0000 (18:29 +0100)
src/import/curl-util.c

index 5e0904379e18edcadb5724b761e3d702020b9b90..e6db8106355c38c7306eaa70e9a3a260997b9195 100644 (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;