Browse Source

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

nfactor-troky
Con Kolivas 13 years ago
parent
commit
437d6f05cc
  1. 2
      util.c

2
util.c

@ -319,8 +319,10 @@ json_t *json_rpc_call(CURL *curl, const char *url, @@ -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, "");

Loading…
Cancel
Save