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