lib/rabbit/receiving/malformed_message.rb in rabbit_messaging-0.6.0 vs lib/rabbit/receiving/malformed_message.rb in rabbit_messaging-0.7.0

- old
+ new

@@ -3,10 +3,10 @@ module Rabbit::Receiving class MalformedMessage < StandardError attr_accessor :message_model, :errors def self.logger - @logger ||= Logger.new(Rails.root.join("log", "malformed_messages.log")) + @logger ||= Rabbit.config.malformed_logger end def self.raise!(message_model, errors, backtrace = caller(1)) error = new(message_model, errors) logger.error error.message