summaryrefslogtreecommitdiff
path: root/src/mongo/scripting
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2020-02-10 09:15:15 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-10 18:36:46 +0000
commit46d2b6ceee0f161ca77bc5077c1465c6ca8faeae (patch)
tree3f83918294894681e9333122a8f7abec898e99d7 /src/mongo/scripting
parentf51b997ba16bfae5e185219e161af7b34b34e71d (diff)
downloadmongo-46d2b6ceee0f161ca77bc5077c1465c6ca8faeae.tar.gz
SERVER-46057 Disable truncation from js logging in shell
Diffstat (limited to 'src/mongo/scripting')
-rw-r--r--src/mongo/scripting/mozjs/global.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/scripting/mozjs/global.cpp b/src/mongo/scripting/mozjs/global.cpp
index 6492de06a04..391b1117c86 100644
--- a/src/mongo/scripting/mozjs/global.cpp
+++ b/src/mongo/scripting/mozjs/global.cpp
@@ -68,6 +68,7 @@ logger::MessageLogDomain* plainShellOutputDomain;
void GlobalInfo::Functions::print::call(JSContext* cx, JS::CallArgs args) {
logger::LogstreamBuilder builder(
plainShellOutputDomain, getThreadName(), logger::LogSeverity::Log());
+ builder.setIsTruncatable(false);
std::ostream& ss = builder.stream();
bool first = true;