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

Replace and remove printjsononeline() from jstests

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In favor of SPM-3895, we are trying to prevent the use of tojson() for logging, as it does not produce valid JSON serialization.

      printjsononeline(obj) has only 9 occurrences in 6 JavaScript tests in master branch and can be completely replaced with jsTest.log.info({obj}) or (less preferably) with print(tojsononeline(obj)).

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

              Created:
              Updated:
              None
              None
              None
              None