Remove debug info.
This commit is contained in:
parent
68627cef3d
commit
5b349e7175
@ -154,19 +154,12 @@ module Mongo
|
|||||||
def connect
|
def connect
|
||||||
log(:info, "Connecting...")
|
log(:info, "Connecting...")
|
||||||
return if @connected
|
return if @connected
|
||||||
p @seeds
|
|
||||||
manager = PoolManager.new(self, @seeds)
|
manager = PoolManager.new(self, @seeds)
|
||||||
manager.connect
|
manager.connect
|
||||||
|
|
||||||
update_config(manager)
|
update_config(manager)
|
||||||
initiate_refresh_mode
|
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.
|
if @require_primary && self.primary.nil? #TODO: in v2.0, we'll let this be optional and do a lazy connect.
|
||||||
close
|
close
|
||||||
raise ConnectionFailure, "Failed to connect to primary node."
|
raise ConnectionFailure, "Failed to connect to primary node."
|
||||||
|
Loading…
Reference in New Issue
Block a user