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

Disable mongod log truncation for development/debugging

    • Server Programmability

      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:
            Unassigned Unassigned
            Reporter:
            david.percy@mongodb.com David Percy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: