diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2015-12-18 10:39:47 -0500 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2015-12-21 17:41:16 -0500 |
commit | 7e7ea93facc494fbc393f7170d50b371fbf5f9f0 (patch) | |
tree | 03c664585f2c79489f1c171aecbf3bb8177a1ac3 /src/mongo/util/log.cpp | |
parent | da0c2e704aa0edc8830669865b984d8db861e01e (diff) | |
download | mongo-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.cpp | 4 |
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 |