diff options
author | Greg Studer <greg@10gen.com> | 2013-08-22 17:58:10 -0400 |
---|---|---|
committer | Greg Studer <greg@10gen.com> | 2013-08-26 10:41:23 -0400 |
commit | f70a657c890f510318efc4c3e087f1142a891b47 (patch) | |
tree | ba5ab35cacd74dc7ea7022b81209473f572ef79f /src/mongo/logger | |
parent | c8c9cf9abe7636b75c876752656b3b730c8b2bdd (diff) | |
download | mongo-f70a657c890f510318efc4c3e087f1142a891b47.tar.gz |
SERVER-10606 fix labeled level to correctly output space after label
Diffstat (limited to 'src/mongo/logger')
-rw-r--r-- | src/mongo/logger/logstream_builder.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/logger/logstream_builder.cpp b/src/mongo/logger/logstream_builder.cpp index 2c858c6a94f..8dd778fecc9 100644 --- a/src/mongo/logger/logstream_builder.cpp +++ b/src/mongo/logger/logstream_builder.cpp @@ -89,6 +89,7 @@ namespace logger { LogstreamBuilder::~LogstreamBuilder() { if (_os) { + if ( !_baseMessage.empty() ) _baseMessage.push_back(' '); _baseMessage += _os->str(); MessageEventEphemeral message(curTimeMillis64(), _severity, _contextName, _baseMessage); _domain->append(message); |