diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2020-02-24 09:34:49 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-24 23:32:41 +0000 |
commit | 93a28d58c8c01a610aa6e60bc969699fa02007df (patch) | |
tree | 7fec7598b8c47fee7564e0399381be7d86bd962a /src/mongo/shell | |
parent | baa3f5561400ed05e67825701240aaaadbde796c (diff) | |
download | mongo-93a28d58c8c01a610aa6e60bc969699fa02007df.tar.gz |
SERVER-46333 Disable log truncation in the shell ProgramMultiplexer
Logs coming from mongod/mongos will be truncated already if they should be.
Diffstat (limited to 'src/mongo/shell')
-rw-r--r-- | src/mongo/shell/shell_utils_launcher.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/shell/shell_utils_launcher.cpp b/src/mongo/shell/shell_utils_launcher.cpp index a1c76870e36..f9025622ba7 100644 --- a/src/mongo/shell/shell_utils_launcher.cpp +++ b/src/mongo/shell/shell_utils_launcher.cpp @@ -251,7 +251,10 @@ void ProgramOutputMultiplexer::appendLine(int port, std::ostringstream ss; sinkProgramOutput(_buffer); sinkProgramOutput(ss); - LOGV2_OPTIONS(4615640, {logv2::LogTag::kPlainShell}, "{message}", "message"_attr = ss.str()); + LOGV2_OPTIONS(4615640, + logv2::LogOptions(logv2::LogTag::kPlainShell, logv2::LogTruncation::Disabled), + "{message}", + "message"_attr = ss.str()); } string ProgramOutputMultiplexer::str() const { |