From 8dc0291c0dafa9c49a79fa4c561c645056aeb12b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 15 Jan 2021 22:54:42 +0100 Subject: [PATCH] import: turn on HTTP logging in debug mode --- src/import/curl-util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;