diff options
Diffstat (limited to 'util/log.h')
-rw-r--r-- | util/log.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/log.h b/util/log.h index 75352ac4bf8..db1a6c37c52 100644 --- a/util/log.h +++ b/util/log.h @@ -124,8 +124,9 @@ namespace mongo { Logstream& operator<<(unsigned long long x) LOGIT Logstream& operator<<(bool x) LOGIT Logstream& operator<<(const LazyString& x) { + string res = x.val(); boostlock lk(mutex); - cout << x.val(); + cout << res; return *this; } Logstream& operator<< (ostream& ( *_endl )(ostream&)) { |