Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-83810

Disable mongod log truncation for development/debugging

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Service Arch

      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?

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            david.percy@mongodb.com David Percy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: