Skip to content

Commit

Permalink
chore: add database name to connecting log output
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Mar 9, 2018
1 parent 18b9b7e commit 34afb4d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/db.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 34afb4d

Please sign in to comment.