[DOCS-16100] [SERVER] Add setParameter to enable libcurl's verbose logging Created: 05/May/23  Updated: 13/Nov/23  Resolved: 18/Jul/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 5.0.18, 4.4.22, 7.0.0-rc1, 6.0.7, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Will Pierce
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-76619 Add setParameter to enable libcurl's ... Closed
Participants:
Days since reply: 39 weeks ago

 Description   

ORIGINAL SUBJECT: Investigate changes in SERVER-76619: Add setParameter to enable libcurl's verbose logging

Original Downstream Change Summary

Adds new boolean setParameter named "httpVerboseLogging" to enable verbose tracing from the HTTP client stack in the server. Presently, it adds more verbose tracing for Curl (i.e. Linux and macOS) has no affect on Windows.

Description of Linked Ticket

We should add callbacks for libcurl's CURLOPT_DEBUGFUNCTION to log to our logging system. The set parameter should set CURLOPT_VERBOSE in createCurlEasyHandle in src/mongo/util/net/http_client_curl.cpp
 
We should log CURLINFO_TEXT, CURLINFO_HEADER_IN, and CURLINFO_HEADER_OUT. But we should check what libcurl does by default to stdout and align towards.

 



 Comments   
Comment by Ashley Brown [ 10/May/23 ]

Please backport through v4.4.

Generated at Thu Feb 08 08:14:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.