Skip to content

Commit 1d05b93

Browse files
committed
casync-http: set curl verbosity
Enable CURL verbosity for the notice and higher log levels (ie. debug). When CURLOPT_VERBOSE is enabled, libcurl outputs traces to stderr, such as headers and a lot of internal information. Now, the libcurl verbose informations are dumped to stdout when the options --log-level notice or debug are specified to casync.
1 parent f1f6b11 commit 1d05b93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/casync-http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ static int make_curl_easy_handle(CURL **ret,
205205
if (arg_ssl_trust_peer)
206206
CURL_SETOPT_EASY(h, CURLOPT_SSL_VERIFYPEER, false);
207207

208-
/* CURL_SETOPT_EASY(h, CURLOPT_VERBOSE, 1L); */
208+
CURL_SETOPT_EASY(h, CURLOPT_VERBOSE, arg_log_level > 4);
209209

210210
*ret = TAKE_PTR(h);
211211
return 0;

0 commit comments

Comments
 (0)