Commit 437d6f05cc29fb09ae8829285dfbd4b91e8e28c2

Con Kolivas 2011-08-26T13:32:41

Disable curl debugging with opt protocol since it spews to stderr.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/util.c b/util.c
index 96b32ae..c7d6c7e 100644
--- a/util.c
+++ b/util.c
@@ -319,8 +319,10 @@ json_t *json_rpc_call(CURL *curl, const char *url,
 	}
 	curl_easy_setopt(curl, CURLOPT_TIMEOUT, timeout);
 
+#if 0 /* Disable curl debugging since it spews to stderr */
 	if (opt_protocol)
 		curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
+#endif
 	curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
 	curl_easy_setopt(curl, CURLOPT_URL, url);
 	curl_easy_setopt(curl, CURLOPT_ENCODING, "");