From 03ef06d81d5a83e17d0133148d935965228c9018 Mon Sep 17 00:00:00 2001 From: Gabriel Marks Date: Mon, 18 Apr 2022 20:02:59 +0000 Subject: SERVER-62935 Add date string to assert message --- src/mongo/shell/assert.js | 4 ++-- 1 file 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; -- cgit v1.2.1