summaryrefslogtreecommitdiff
path: root/src/mongo/util/log.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-12-18 10:39:47 -0500
committerAndy Schwerin <schwerin@mongodb.com>2015-12-21 17:41:16 -0500
commit7e7ea93facc494fbc393f7170d50b371fbf5f9f0 (patch)
tree03c664585f2c79489f1c171aecbf3bb8177a1ac3 /src/mongo/util/log.cpp
parentda0c2e704aa0edc8830669865b984d8db861e01e (diff)
downloadmongo-7e7ea93facc494fbc393f7170d50b371fbf5f9f0.tar.gz
SERVER-21959 Do not truncate stack traces in log messages.
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