Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-16100

[SERVER] Add setParameter to enable libcurl's verbose logging

    XMLWordPrintableJSON

Details

    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.

       

      Attachments

        Activity

          People

            will.pierce@mongodb.com Will Pierce
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              39 weeks ago