From 34afb4da1b03d3e96891de35100bd5bc084d2110 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Fri, 9 Mar 2018 20:33:51 +1100 Subject: [PATCH] chore: add database name to connecting log output --- lib/db.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/db.rb b/lib/db.rb index f276a8eb7..a6184c095 100644 --- a/lib/db.rb +++ b/lib/db.rb @@ -35,8 +35,9 @@ def self.connect db_credentials end def self.connection_for_env env - logger.info "Connecting to #{env} database." - connect configuration_for_env(env) + config = configuration_for_env(env) + logger.info "Connecting to #{env} database #{config['database']}." + connect config end def self.configuration_for_env env