Remove debug info.

This commit is contained in:
Kyle Banker 2011-11-03 11:19:26 -04:00
parent 68627cef3d
commit 5b349e7175
1 changed files with 0 additions and 7 deletions

View File

@ -154,19 +154,12 @@ module Mongo
def connect
log(:info, "Connecting...")
return if @connected
p @seeds
manager = PoolManager.new(self, @seeds)
manager.connect
update_config(manager)
initiate_refresh_mode
puts "Primary: #{@manager.primary}"
puts "Secondaries: #{@manager.secondaries}"
if @manager.read_pool
c = Connection.new(@manager.read_pool.host, @manager.read_pool.port, :slave_ok => true)
p c['admin'].command({:replSetGetStatus => 1})
end
if @require_primary && self.primary.nil? #TODO: in v2.0, we'll let this be optional and do a lazy connect.
close
raise ConnectionFailure, "Failed to connect to primary node."