summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-07-01 11:59:43 -0400
committerEliot Horowitz <eliot@10gen.com>2009-07-01 11:59:43 -0400
commit9ea397a1314b3ad6dd96cebde7d21086f243a2c2 (patch)
tree43e6cb1b6d5e70ddd6c3c6a8857b02a33d69e122
parent63251bbe3410a59e74e6e943b59c1a5aa6873055 (diff)
downloadmongo-9ea397a1314b3ad6dd96cebde7d21086f243a2c2.tar.gz
nice log messages
-rw-r--r--db/query.cpp1
-rw-r--r--db/queryoptimizer.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/db/query.cpp b/db/query.cpp
index 30152985a6c..818bb5b7eb3 100644
--- a/db/query.cpp
+++ b/db/query.cpp
@@ -1289,6 +1289,7 @@ namespace mongo {
if ( dqo.scanAndOrderRequired() )
ss << " scanAndOrder ";
auto_ptr< Cursor > c = dqo.cursor();
+ log( 5 ) << " used cursor: " << c->toString() << endl;
if ( dqo.saveClientCursor() ) {
ClientCursor *cc = new ClientCursor();
cc->c = c;
diff --git a/db/queryoptimizer.cpp b/db/queryoptimizer.cpp
index 81bb9bc6889..56896a5abaf 100644
--- a/db/queryoptimizer.cpp
+++ b/db/queryoptimizer.cpp
@@ -339,7 +339,7 @@ namespace mongo {
massert( "no plans", plans_.plans_.size() > 0 );
if ( plans_.plans_.size() > 1 )
- log(1) << "running multiple plans" << endl;
+ log(1) << " running multiple plans" << endl;
vector< shared_ptr< QueryOp > > ops;
for( PlanSet::iterator i = plans_.plans_.begin(); i != plans_.plans_.end(); ++i ) {