lib/yogi_berra/catcher.rb in yogi_berra-0.0.3 vs lib/yogi_berra/catcher.rb in yogi_berra-0.0.4
- old
+ new
@@ -37,10 +37,10 @@
YogiBerra::Logger.log("Couldn't connect to the mongo database on host: #{host} port: #{port}.", :error)
nil
end
def quick_connection
- load_db_settings
+ load_db_settings unless @@settings
if @@settings
host = @@settings["host"]
port = @@settings["port"]
client = db_client(host, port)
\ No newline at end of file