summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorGreg Studer <greg@10gen.com>2013-08-22 17:58:10 -0400
committerGreg Studer <greg@10gen.com>2013-08-26 10:41:23 -0400
commitf70a657c890f510318efc4c3e087f1142a891b47 (patch)
treeba5ab35cacd74dc7ea7022b81209473f572ef79f /src/mongo
parentc8c9cf9abe7636b75c876752656b3b730c8b2bdd (diff)
downloadmongo-f70a657c890f510318efc4c3e087f1142a891b47.tar.gz
SERVER-10606 fix labeled level to correctly output space after label
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/logger/logstream_builder.cpp1
-rw-r--r--src/mongo/util/log.h1
2 files changed, 1 insertions, 1 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);
diff --git a/src/mongo/util/log.h b/src/mongo/util/log.h
index 942e9cbffe0..62117d519d3 100644
--- a/src/mongo/util/log.h
+++ b/src/mongo/util/log.h
@@ -103,7 +103,6 @@ namespace logger {
inline LogstreamBuilder problem() {
std::string curns = getcurns();
- curns.push_back(' ');
return log().setBaseMessage(curns);
}