diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-11-02 17:34:04 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-11-02 17:34:04 +0100 |
commit | f5341d0dfa0f1ba98b0f9306ae6cb985258af2ed (patch) | |
tree | 54bb308146bdbd9e8da1fd228b8757967ac8014e /lib/pingpong.c | |
parent | 606d213766fb94a4653ec41ef3b91cc0a96b9570 (diff) | |
download | curl-bagder/debug-verbose-check.tar.gz |
sendf: move the verbose-check into Curl_debugbagder/debug-verbose-check
Saves us from having the same check done everywhere.
Diffstat (limited to 'lib/pingpong.c')
-rw-r--r-- | lib/pingpong.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/pingpong.c b/lib/pingpong.c index 5a06674ad..a6c8aee95 100644 --- a/lib/pingpong.c +++ b/lib/pingpong.c @@ -218,8 +218,7 @@ CURLcode Curl_pp_vsendf(struct pingpong *pp, conn->data_prot = data_sec; #endif - if(data->set.verbose) - Curl_debug(data, CURLINFO_HEADER_OUT, s, (size_t)bytes_written); + Curl_debug(data, CURLINFO_HEADER_OUT, s, (size_t)bytes_written); if(bytes_written != (ssize_t)write_len) { /* the whole chunk was not sent, keep it around and adjust sizes */ @@ -364,9 +363,8 @@ CURLcode Curl_pp_readresp(curl_socket_t sockfd, #ifdef HAVE_GSSAPI if(!conn->sec_complete) #endif - if(data->set.verbose) - Curl_debug(data, CURLINFO_HEADER_IN, - pp->linestart_resp, (size_t)perline); + Curl_debug(data, CURLINFO_HEADER_IN, + pp->linestart_resp, (size_t)perline); /* * We pass all response-lines to the callback function registered |