diff options
author | Judah Schvimer <judah@mongodb.com> | 2018-03-13 16:14:36 -0400 |
---|---|---|
committer | Judah Schvimer <judah@mongodb.com> | 2018-03-15 11:47:46 -0400 |
commit | a65f5add63e89bf4303c4ea6abac1cefac81d98b (patch) | |
tree | afc47362c48a8419fa1c9d049971a45e0a4f50cb /src/mongo/shell/utils.js | |
parent | ebcfc62197744ffe0bb77a404a8e210c2100de31 (diff) | |
download | mongo-a65f5add63e89bf4303c4ea6abac1cefac81d98b.tar.gz |
SERVER-33734 Improve jsTestLog filterability
Diffstat (limited to 'src/mongo/shell/utils.js')
-rw-r--r-- | src/mongo/shell/utils.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/shell/utils.js b/src/mongo/shell/utils.js index 6d130491b29..227d3463c3a 100644 --- a/src/mongo/shell/utils.js +++ b/src/mongo/shell/utils.js @@ -304,7 +304,8 @@ setJsTestOption = function(name, value) { }; jsTestLog = function(msg) { - print("\n\n----\n" + msg + "\n----\n\n"); + const msgs = ["----", ...msg.split("\n"), "----"].map(s => `[jsTest] ${s}`); + print(`\n\n${msgs.join("\n")}\n\n`); }; jsTest = {}; |