# File lib/new_relic/agent/database.rb, line 152 def get_connection(config, &connector) @connections ||= {} connection = @connections[config] return connection if connection begin @connections[config] = connector.call(config) rescue => e ::NewRelic::Agent.logger.error("Caught exception trying to get connection to DB for explain.", e) nil end end