Fix typo in MONGODB_LOG_MAX_DOCUMENT_LENGTH environment variable name

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: greenerbuild
    • None
    • None
    • 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

      The environment variable used to configure the max document length for command logging is misspelled as MONGOB_LOG_MAX_DOCUMENT_LENGTH (missing the D in MONGODB). In pymongo/logger.py:165

      document_length = int(os.getenv("MONGOB_LOG_MAX_DOCUMENT_LENGTH", _DEFAULT_DOCUMENT_LENGTH))Per the command-logging-and-monitoring spec, the variable should be MONGODB_LOG_MAX_DOCUMENT_LENGTH.

      Definition of done

      Use the correct name MONGODB_LOG_MAX_DOCUMENT_LENGTH and update the tests accordingly.

      Pitfalls

      Users using the misspelled var ?!

            Assignee:
            Unassigned
            Reporter:
            Alex Clark
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: