From: Lennart Poettering Date: Fri, 15 Jan 2021 21:54:42 +0000 (+0100) Subject: import: turn on HTTP logging in debug mode X-Git-Tag: v248-rc1~296^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dc0291c0dafa9c49a79fa4c561c645056aeb12b;p=thirdparty%2Fsystemd.git import: turn on HTTP logging in debug mode --- diff --git a/src/import/curl-util.c b/src/import/curl-util.c index 5e0904379e1..e6db8106355 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;