diff options
Diffstat (limited to 'content/fetch.c')
-rw-r--r-- | content/fetch.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/content/fetch.c b/content/fetch.c index 2620f80b5..ed2c63670 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -248,7 +248,11 @@ void fetch_init(void) if (code != CURLE_OK) \ goto curl_easy_setopt_failed; - SETOPT(CURLOPT_VERBOSE, 1); + if (verbose_log) { + SETOPT(CURLOPT_VERBOSE, 1); + } else { + SETOPT(CURLOPT_VERBOSE, 0); + } SETOPT(CURLOPT_ERRORBUFFER, fetch_error_buffer); SETOPT(CURLOPT_WRITEFUNCTION, fetch_curl_data); SETOPT(CURLOPT_HEADERFUNCTION, fetch_curl_header); |