summaryrefslogtreecommitdiff
path: root/src/mongo/logger/logstream_builder.h
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/logger/logstream_builder.h
parentda0c2e704aa0edc8830669865b984d8db861e01e (diff)
downloadmongo-7e7ea93facc494fbc393f7170d50b371fbf5f9f0.tar.gz
SERVER-21959 Do not truncate stack traces in log messages.
Diffstat (limited to 'src/mongo/logger/logstream_builder.h')
-rw-r--r--src/mongo/logger/logstream_builder.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/logger/logstream_builder.h b/src/mongo/logger/logstream_builder.h
index 275ce871bdd..40f56ccf75f 100644
--- a/src/mongo/logger/logstream_builder.h
+++ b/src/mongo/logger/logstream_builder.h
@@ -115,6 +115,11 @@ public:
return *this;
}
+ LogstreamBuilder& setIsTruncatable(bool isTruncatable) {
+ _isTruncatable = isTruncatable;
+ return *this;
+ }
+
std::ostream& stream() {
if (!_os)
makeStream();
@@ -230,6 +235,7 @@ private:
std::string _baseMessage;
std::unique_ptr<std::ostringstream> _os;
Tee* _tee;
+ bool _isTruncatable = true;
};