diff options
Diffstat (limited to 'config/environments')
-rw-r--r-- | config/environments/production.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |