Skip to content

Commit

Permalink
Removed logging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
christkv committed Apr 25, 2013
1 parent 450bce0 commit ccdbb64
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/mongodb/connection/repl_set/repl_set.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,6 @@ var _connectHandler = function(self, candidateServers, instanceServer) {
return self.emit("connectionError", new Error("No valid replicaset instance servers found"));
} else if(candidateServers.length == 0) {
if(!self.options.connectWithNoPrimary && (self._state.master == null || !self._state.master.isConnected())) {
console.log("======================================== current state")
console.dir(self._state.master)
console.dir(self._state.secondaries)
console.dir(Object.keys(self._state.addresses))
return self.emit("connectionError", new Error("No primary found in set"));
}
return self.emit("fullsetup", null, self.options.db, self);
Expand Down

0 comments on commit ccdbb64

Please sign in to comment.