Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-2858

Log line for "Waiting for suitable server to become available" is too noisy

    • Needed
    • Hide

      Summary of necessary driver changes

      •  

      Commits for syncing spec/prose tests
      (and/or refer to an existing language POC if needed)

      •  

      Context for other referenced/linked tickets

      •  
      Show
      Summary of necessary driver changes   Commits for syncing spec/prose tests (and/or refer to an existing language POC if needed)   Context for other referenced/linked tickets  

      The log line for "Waiting for suitable server to become available" is too noisy to be at level INFO, for example in the test suite:

       [2024/03/05 08:26:06.602] ------------------------------ Captured log call -------------------------------
       [2024/03/05 08:26:06.602] INFO     pymongo.serverSelection:logger.py:94 {"message": "Waiting for suitable server to become available", "selector": "Primary()", "operation": "find", "topologyDescription": "<TopologyDescription id: 65e74798e1229616f1003db2, topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription ('localhost', 27017) server_type: Unknown, rtt: None>]>", "clientId": {"$oid": "65e74798e1229616f1003db2"}, "remainingTimeMS": 29}
      

      https://spruce.mongodb.com/task/mongo_python_driver_tests_python_version_rhel8_test_ssl__platform~rhel8_auth_ssl~auth_ssl_python_version~3.8_coverage~coverage_test_7.0_replica_set_b041ca5f7c201f1b0ecb97c517a1ece8d775c00a_24_03_05_15_53_53/logs?execution=0&sortBy=STATUS&sortDir=ASC

      I think we should log this at DEBUG level instead, otherwise users are going to be confused. Essentially this line will be logged every time a client is first created and used.

            Assignee:
            boris.dogadov@mongodb.com Boris Dogadov
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: