lib/rabbit_carrots/tasks/rmq.rake in rabbit_carrots-0.1.14 vs lib/rabbit_carrots/tasks/rmq.rake in rabbit_carrots-0.1.15

- old
+ new

@@ -8,10 +8,10 @@ channels = RabbitCarrots.configuration.routing_key_mappings.map do |mapping| # This will be supplied in initializer. At that time, the Handler will not be available to be loaded and will throw Uninitialized Constant { **mapping, handler: mapping[:handler].constantize } end - Rails.logger = Logger.new($stdout) + Rails.logger = Logger.new(Rails.env.production? ? '/proc/self/fd/1' : $stdout) # Run RMQ Subscriber for each channel channels.each do |channel| handler_class = channel[:handler]