Module: PactBroker::Config::RuntimeConfigurationLoggingMethods::InstanceMethods
- Defined in:
- lib/pact_broker/config/runtime_configuration_logging_methods.rb
Instance Method Summary collapse
-
#log_configuration(logger) ⇒ Object
base_url raises a not implemented error.
Instance Method Details
#log_configuration(logger) ⇒ Object
base_url raises a not implemented error
26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/pact_broker/config/runtime_configuration_logging_methods.rb', line 26 def log_configuration(logger) source_info = to_source_trace (self.class.config_attributes - [:base_url]).collect(&:to_s).each_with_object({})do | key, new_hash | new_hash[key] = { value: self.send(key.to_sym), source: source_info.dig(key, :source) || {:type=>:defaults} } end.sort_by { |key, _| key }.each { |key, value| log_config_inner(key, value, logger) } if self.webhook_redact_sensitive_data == false logger.warn("WARNING!!! webhook_redact_sensitive_data is set to false. This will allow authentication information to be included in the webhook logs. This should only be used for debugging purposes. Do not run the application permanently in production with this value.") end end |