mirror of
https://github.com/ditkrg/rabbit_carrots.git
synced 2026-01-22 22:06:40 +00:00
Add Logger production path
This commit is contained in:
parent
0a4e8b052f
commit
010c64e87a
@ -10,7 +10,7 @@ namespace :rabbit_carrots do
|
|||||||
{ **mapping, handler: mapping[:handler].constantize }
|
{ **mapping, handler: mapping[:handler].constantize }
|
||||||
end
|
end
|
||||||
|
|
||||||
Rails.logger = Logger.new($stdout)
|
Rails.logger = Logger.new(Rails.env.production? ? '/proc/self/fd/1' : $stdout)
|
||||||
|
|
||||||
# Run RMQ Subscriber for each channel
|
# Run RMQ Subscriber for each channel
|
||||||
channels.each do |channel|
|
channels.each do |channel|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user