[SERVER-83810] Disable mongod log truncation for development/debugging Created: 01/Dec/23  Updated: 05/Dec/23

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: David Percy Assignee: Backlog - Service Architecture
Resolution: Unresolved Votes: 0
Labels: make-server-testing-joyful
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Service Arch
Participants:

 Description   

When I'm debugging locally, if I print a large object, the default behavior is to truncate it by dropping attributes. It's easy to not realize this is happening, because the output is still valid BSON. (We do add a "truncated" field to the log line, but this is easy to miss if you're extracting just the value of interest.)

Can we change this default?

  • Add a test-only setParameter that disables all log truncation.
  • Have resmoke.py enable that parameter by default.
    • Or leave it up to each suite to decide.

Alternatively, maybe we could disable truncation for messages of DEBUG severity?


Generated at Thu Feb 08 06:53:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.