Replace and remove printjsononeline() from jstests

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • None
    • 3
    • 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
              Reporter:
              Romans Kasperovics
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: