lib/rabbit/receiving/worker.rb in rabbit_messaging-0.6.0 vs lib/rabbit/receiving/worker.rb in rabbit_messaging-0.7.0
- old
+ new
@@ -12,10 +12,10 @@
class Worker
include Sneakers::Worker
def self.logger
- @logger ||= Logger.new(Rails.root.join("log", "incoming_rabbit_messages.log"))
+ @logger ||= Rabbit.config.receive_logger
end
def work_with_params(message, delivery_info, arguments)
message = message.dup.force_encoding("UTF-8")
self.class.logger.debug([message, delivery_info, arguments].join(" / "))