Add logging statement when SRV polling fails

XMLWordPrintableJSON

    • Python Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      Add logging statement when SRV polling fails. Currently we silence any SRV errors. This should only be visible in debug mode of our standardized logging. See below for an example of how the logging should be added.
      except Exception as exc: # As per the spec, upon encountering an error: # - An error must not be raised # - SRV records must be rescanned every heartbeatFrequencyMS # - Topology must be left unchanged self.request_check()
      + _debug_log(_SDAM_LOGGER, message="SRV monitor check failed", failure=repr(exc)) return None

      Acceptance Criteria

      Add this condition to our standardized logging.

       

              Assignee:
              Noah Stapp
              Reporter:
              Shane Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: