From 25e22eb1f5046fdf9ef1d470b86faf640375de08 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Wed, 30 May 2007 22:27:58 +0000 Subject: Add a -v option to enable debug logging. Pass -v by default to the RO runimage. svn path=/trunk/netsurf/; revision=3306 --- content/fetch.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'content') 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); -- cgit v1.2.3