diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-05-20 02:03:07 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-05-20 02:03:07 -0400 |
commit | 4e1ef081145de4464d9f3f94d8db81c707f8653b (patch) | |
tree | dd0cbfffc316f48f5523224d1c6237b9b0afa663 | |
parent | ad4402b760ddb263c4961bcd50e203f2152b3b20 (diff) | |
download | mongo-4e1ef081145de4464d9f3f94d8db81c707f8653b.tar.gz |
log output fix and slightly more verbose slave failover
Conflicts:
client/dbclient_rs.cpp
-rw-r--r-- | client/dbclient_rs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/dbclient_rs.cpp b/client/dbclient_rs.cpp index 1bee8206b43..ce8e9f27d5e 100644 --- a/client/dbclient_rs.cpp +++ b/client/dbclient_rs.cpp @@ -317,7 +317,7 @@ namespace mongo { BSONObj o; c->isMaster(isMaster, &o); - log( ! verbose ) << "ReplicaSetMonitor::_checkConnection: " << c->toString() << ' ' << o << '\n'; + log( ! verbose ) << "ReplicaSetMonitor::_checkConnection: " << c->toString() << ' ' << o << endl; // add other nodes if ( o["hosts"].type() == Array ) { @@ -547,7 +547,7 @@ namespace mongo { return checkSlave()->query(ns,query,nToReturn,nToSkip,fieldsToReturn,queryOptions,batchSize); } catch ( DBException &e ) { - LOG(1) << "can't query replica set slave " << i << " : " << _slaveHost << e.what() << endl; + log() << "can't query replica set slave " << i << " : " << _slaveHost << e.what() << endl; } } } |