lib/alephant/publisher/queue/options.rb in alephant-publisher-queue-1.4.1 vs lib/alephant/publisher/queue/options.rb in alephant-publisher-queue-2.0.0

- old
+ new

@@ -1,7 +1,7 @@ -require 'aws-sdk' -require 'alephant/logger' +require "aws-sdk" +require "alephant/logger" module Alephant module Publisher module Queue class InvalidKeySpecifiedError < StandardError; end @@ -50,10 +50,16 @@ begin validate type, opts instance.merge! opts rescue Exception => e logger.metric "QueueOptionsInvalidKeySpecified" - logger.error "Publisher::Queue::Options#validate: '#{e.message}'" + logger.error( + "event" => "QueueOptionsKeyInvalid", + "class" => e.class, + "message" => e.message, + "backtrace" => e.backtrace.join.to_s, + "method" => "#{self.class}#validate" + ) puts e.message end end def validate(type, opts)