summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-01-15 22:54:42 +0100
committerLennart Poettering <lennart@poettering.net>2021-01-19 18:29:59 +0100
commit8dc0291c0dafa9c49a79fa4c561c645056aeb12b (patch)
treec9eff954e8f02a22dd3912f232abb3d1c30a6878
parentimport: small memory management simplification (diff)
downloadsystemd-8dc0291c0dafa9c49a79fa4c561c645056aeb12b.tar.xz
systemd-8dc0291c0dafa9c49a79fa4c561c645056aeb12b.zip
import: turn on HTTP logging in debug mode
-rw-r--r--src/import/curl-util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/import/curl-util.c b/src/import/curl-util.c
index 5e0904379e..e6db810635 100644
--- a/src/import/curl-util.c
+++ b/src/import/curl-util.c
@@ -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;