improve http client traces for CURL and add traces for WinHTTP client. #1544
Labels
feature-request
A feature should be added or improved.
p2
This is a standard priority issue
pending-release
This issue will be fixed by an approved PR that hasn't been released yet.
I'm about to commit a PR which improve http client traces for CURL client, and add http client traces for WinHTTP client. I saw you requested to first open a feature request for that, so here it is:
The following is needed relating to http client traces:
Enable http client traces to be configured as per client configuration and not as per compilation of the library (currently only if ENABLE_CURL_LOGGING is defined when building the library).
For curl traces, do not print the data transferred, as it may contain user private data. Current code (before the suggested code change) prints CURLINFO_DATA_[IN|OUT] information, which contains for example content of files uploaded or downloaded to S3. This is not acceptable by our customers as it harms their privacy, and the suggested code change prints the size of the data only and not the content of the data.
Print the http client traces at the most verbose mode, which is 'trace', instead of 'debug' mode.
For curl trace, when printing size, add a space between the size and the 'bytes' suffix (for example '1024 bytes' instead of '1024bytes' )
Add also WinHTTP traces for Windows build (with the same http client trace flag).
When WinHTTP request failed, print also the WinHTTP error code to debug trace. This can help with troubleshooting of network issues on Windows.
The text was updated successfully, but these errors were encountered: