summaryrefslogtreecommitdiff
path: root/src/mongo/util/log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/log.cpp')
-rw-r--r--src/mongo/util/log.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/util/log.cpp b/src/mongo/util/log.cpp
index 75463d32858..75720dbcf7f 100644
--- a/src/mongo/util/log.cpp
+++ b/src/mongo/util/log.cpp
@@ -131,7 +131,9 @@ void logContext(const char* errmsg) {
if (errmsg) {
log() << errmsg << endl;
}
- printStackTrace(log().stream());
+ // NOTE: We disable long-line truncation for the stack trace, because the JSON representation of
+ // the stack trace can sometimes exceed the long line limit.
+ printStackTrace(log().setIsTruncatable(false).stream());
}
Tee* const warnings = RamLog::get("warnings"); // Things put here go in serverStatus