ExportXMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.20.2
    • Affects Version/s: None
    • Component/s: greenerbuild
    • None
    • None
    • Python Drivers
    • Not Needed
    • 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:
            Iris Ho
            Reporter:
            Alex Clark
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: