Add filtering for curl debug output.
Add CURLTR debug channel for libcurl API calls, and use CURLIO only for libcurl debug output. Note: need to set gDebugCurlTerse to true for filtering to take effect, then pass 'debug_on' to the LLHttpClient methods that require debugging.
This commit is contained in:
@@ -271,6 +271,11 @@ class AICurlEasyRequest {
|
||||
// Queue a command to remove this request from the multi session (or cancel a queued command to add it).
|
||||
void removeRequest(void);
|
||||
|
||||
#ifdef DEBUG_CURLIO
|
||||
// Turn on/off debug output.
|
||||
void debug(bool debug) { AICurlEasyRequest_wat(*mBufferedCurlEasyRequest)->debug(debug); }
|
||||
#endif
|
||||
|
||||
private:
|
||||
// The actual pointer to the ThreadSafeBufferedCurlEasyRequest instance.
|
||||
AICurlPrivate::BufferedCurlEasyRequestPtr mBufferedCurlEasyRequest;
|
||||
|
||||
Reference in New Issue
Block a user