Skip to content

Commit

Permalink
Merge pull request #208 from dmacvicar/dmacvicar_production
Browse files Browse the repository at this point in the history
Honour RAILS_LOG_TO_STDOUT in config/environments/production.rb
  • Loading branch information
lnussel committed Feb 9, 2018
2 parents 9c15ccc + 3521ce3 commit 96f83c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,9 @@
# Rake tasks automatically ignore this option for performance.
config.eager_load = true

if ENV["RAILS_LOG_TO_STDOUT"].present?
logger = ActiveSupport::Logger.new(STDOUT)
logger.formatter = config.log_formatter
config.logger = ActiveSupport::TaggedLogging.new(logger)
end
end

0 comments on commit 96f83c8

Please sign in to comment.