Add Logger production path

This commit is contained in:
ari 2022-12-04 14:04:29 +03:00
parent 0a4e8b052f
commit 010c64e87a
No known key found for this signature in database
GPG Key ID: 1A5559E2E32F1805

View File

@ -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|