From ef226a6f223ad3bdf662efb0ed75694b3f0bfb56 Mon Sep 17 00:00:00 2001 From: alpaca-tc Date: Tue, 9 May 2017 12:15:54 +0900 Subject: Remove rails_12factor (#2901) --- config/environments/production.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config/environments/production.rb') diff --git a/config/environments/production.rb b/config/environments/production.rb index 2c13707c2..fa5f07495 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -19,6 +19,11 @@ Rails.application.configure do # Apache or NGINX already handles this. config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + ActiveSupport::Logger.new(STDOUT).tap do |logger| + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + # Compress JavaScripts and CSS. config.assets.js_compressor = Uglifier.new(mangle: false) # config.assets.css_compressor = :sass -- cgit