lib/pheme/configuration.rb in pheme-0.0.8 vs lib/pheme/configuration.rb in pheme-0.0.9

- old
+ new

@@ -14,14 +14,15 @@ def self.reset_configuration! @configuration = Configuration.new end class Configuration - ATTRIBUTES = [:sns_client, :sqs_client, :logger, :rollbar] + ATTRIBUTES = %i[sns_client sqs_client logger rollbar].freeze attr_accessor *ATTRIBUTES def initialize @logger ||= Logger.new(STDOUT) + @logger = ActiveSupport::TaggedLogging.new(@logger) unless @logger.respond_to?(:tagged) end def validate! ATTRIBUTES.each do |attribute| raise "Invalid or missing configuration for #{attribute}" unless send(attribute).present?