diff options
author | Tad Marshall <tad@10gen.com> | 2012-09-21 15:45:46 -0400 |
---|---|---|
committer | Tad Marshall <tad@10gen.com> | 2012-09-23 06:40:22 -0400 |
commit | aa36e3b343c3a3c23a773e587ab67184e66c9161 (patch) | |
tree | 09651739b5aa4411384b95ec3b4727e1aed2af50 /src/mongo/db/clientcursor.h | |
parent | ec6187aee39291792ea2ffa7295996e079de9f5f (diff) | |
download | mongo-aa36e3b343c3a3c23a773e587ab67184e66c9161.tar.gz |
SERVER-3795 end logged lines with endl, not newline
Replace a newline in a message with an endl so we get the line break
logic in the logging code. Neaten up the code slightly and put quotes
around the 'id' so it looks like it belongs there.
Diffstat (limited to 'src/mongo/db/clientcursor.h')
-rw-r--r-- | src/mongo/db/clientcursor.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/clientcursor.h b/src/mongo/db/clientcursor.h index aebd23d4607..69e4467d2f9 100644 --- a/src/mongo/db/clientcursor.h +++ b/src/mongo/db/clientcursor.h @@ -309,8 +309,10 @@ namespace mongo { static ClientCursor* find_inlock(CursorId id, bool warn = true) { CCById::iterator it = clientCursorsById.find(id); if ( it == clientCursorsById.end() ) { - if ( warn ) - OCCASIONALLY out() << "ClientCursor::find(): cursor not found in map " << id << " (ok after a drop)\n"; + if ( warn ) { + OCCASIONALLY out() << "ClientCursor::find(): cursor not found in map '" << id + << "' (ok after a drop)" << endl; + } return 0; } return it->second; |