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

Do not pretty-print 'tojson()' output by default

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • 2

      Pretty-printed (multi-line + indentation) JSON is easier to read, however, we should not do it in our mostly-structured logs, because:

      1) it makes it harder to parse with automatic tools
      2) multiple lines can intertwine with other process output making it harder to read or extract manually
      3) pretty-printing can be done with additional tools, for instance, Parsley now supports pretty-printing JSON in 'bookmarked' lines

      Risk: we need to check with build-baron tools authors if this is a breaking change.

            Assignee:
            Unassigned Unassigned
            Reporter:
            romans.kasperovics@mongodb.com Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: