diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2020-02-25 08:48:10 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-25 19:55:58 +0000 |
commit | fe0e48dce3e8b5248b3f3c675749d488b484938b (patch) | |
tree | 4c525916f362e4d05bd3cbfd832f5c8b2af018f5 /src/mongo/scripting/mozjs/implscope.cpp | |
parent | a223322ef7df075739cbe44a488d82c830df19d9 (diff) | |
download | mongo-fe0e48dce3e8b5248b3f3c675749d488b484938b.tar.gz |
SERVER-46359 Log javascript stack traces in plain text in the shell.
Diffstat (limited to 'src/mongo/scripting/mozjs/implscope.cpp')
-rw-r--r-- | src/mongo/scripting/mozjs/implscope.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/scripting/mozjs/implscope.cpp b/src/mongo/scripting/mozjs/implscope.cpp index 75f4a902a37..7be5d8738c7 100644 --- a/src/mongo/scripting/mozjs/implscope.cpp +++ b/src/mongo/scripting/mozjs/implscope.cpp @@ -924,7 +924,10 @@ bool MozJSImplScope::_checkErrorState(bool success, bool reportError, bool asser } if (reportError) - error() << redact(_error); + LOGV2_OPTIONS(4635900, + logv2::LogOptions(logv2::LogTag::kPlainShell, logv2::LogTruncation::Disabled), + "{message}", + "message"_attr = redact(_error)); // Clear the status state auto status = std::move(_status); |