Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-1774

Filter out urllib3 logging about "Certificate did not match..."

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.1.4
    • Component/s: Logging

      Description

      Issue

      Sentry Issue: NUXEO-DRIVE-X15

      Certificate did not match expected hostname: doc.iter-systems.com. Certificate: {"OCSP":["http://ocsp.int-x3.letsencrypt.org"],"caIssuers":["http://cert.int-x3.letsencrypt.org/"],"issuer":[[["countryName","US"]],[["organizationName","Let's Encrypt"]],[["commonName","Let's Encrypt Authority X3"]]],"notAfter":"Sep 22 20:35:22 2019 GMT","notBefore":"Jun 24 20:35:22 2019 GMT","serialNumber":"03DE00850FE17D7513B7DE8BD6844E7DFF13","subject":[[["commonName","extranet.iter-systems.com"]]],"subjectAltName":[["DNS","extranet.iter-systems.com"]],"version":3}
      

      This log event is noisy and can't be lowered becuse it is fired before we can catch anything. Revelant code.

      Fix

      Set a higher logging level for the entire urllib3 module:

      logging.getLogger("urllib3").setLevel(logging.CRITICAL)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 10 minutes
                  10m