-
Type:
Sub-task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
Fully Compatible
-
QE 2025-01-20, QE 2025-02-03, QE 2025-02-17
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Uncaught exceptions are currently logged as a multiline output and it needs to be a valid JSON in the new log format.
Current output:
[js_test:test_assert] uncaught exception: Error: ["APPLE"] != ["BANANA"] are not equal : MESSAGE : test assertion message [js_test:test_assert] doassert@src/mongo/shell/assert.js:20:14 [js_test:test_assert] assert.eq@src/mongo/shell/assert.js:176:17 [js_test:test_assert] @test_assert.js:1:8 [js_test:test_assert] failed to load: test_assert.js [js_test:test_assert] exiting with code -3
Desired output (imagine single line - no pretty-printing):
{ "t": {"$date": "2024-11-08T22:14:36.340+00:00"}, "s": "E", "msg": "uncaught exception : assert.eq() failed : test assertion message : failed to load: test_assert.js : exiting with code -3", "attr": { "arg1": "APPLE", "arg2": "BANANA" "BACKTRACE": [ "doassert@src/mongo/shell/assert.js:20:14", "assert.eq@src/mongo/shell/assert.js:176:17", "@test_assert.js:1:8]" } }
- is related to
-
SERVER-100967 Investigate if we could/should change print() default format
-
- Backlog
-