-
Type: Sub-task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 5.0.0
-
Component/s: None
Description
BSON documents that are passed into the logger are naively stringified, but they ultimately need to be truncated to MONGODB_LOG_MAX_LENGTH.
Acceptance Criteria
- all BSON documents within the logger should be converted to EJSON
- EJSON'd BSON documents should truncated to match MONGODB_LOG_MAX_LENGTH
- EJSON'd BSON documents should end in an ellipsis that doesn't count towards the max length
- has to be done after
-
NODE-4813 Implement the severity logging methods
- Closed