Add Logger production path

This commit is contained in:
ari
2022-12-04 14:04:29 +03:00
parent 0a4e8b052f
commit 010c64e87a

View File

@@ -10,7 +10,7 @@ namespace :rabbit_carrots do
{ **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|