summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Marks <gabriel.marks@mongodb.com>2022-04-18 20:02:59 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-18 20:43:18 +0000
commit03ef06d81d5a83e17d0133148d935965228c9018 (patch)
tree46b0e45dc05f18f725212002c5c1f7bd0ece7914
parent394c5bd97ab6f939f59b9012dcdb67dc79c95751 (diff)
downloadmongo-r6.1.0-alpha.tar.gz
SERVER-62935 Add date string to assert messager6.1.0-alpha
-rw-r--r--src/mongo/shell/assert.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/shell/assert.js b/src/mongo/shell/assert.js
index ff168bd865d..87fe3232814 100644
--- a/src/mongo/shell/assert.js
+++ b/src/mongo/shell/assert.js
@@ -8,9 +8,9 @@ doassert = function(msg, obj) {
if (jsTest.options().traceExceptions) {
if (typeof (msg) == "string" && msg.indexOf("assert") == 0)
- print(msg);
+ print(new Date().toISOString() + " " + msg);
else
- print("assert: " + msg);
+ print(new Date().toISOString() + " assert: " + msg);
}
var ex;