Skip to content

Commit

Permalink
feat: log debug message when loading configuration setting from database
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Mar 11, 2018
1 parent 9ad7f71 commit 9ffcc1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/pact_broker/config/load.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def configuration_attribute_exists? setting

def set_value_on_configuration setting
if configuration_attribute_exists? setting
logger.debug("Loading #{setting.name} configuration from database.")
configuration.send("#{setting.name}=", get_value_from_setting(setting))
else
logger.warn("Could not load configuration setting \"#{setting.name}\" as there is no matching attribute on the Configuration class")
Expand Down

0 comments on commit 9ffcc1a

Please sign in to comment.