From 2cc0d56652906e5c021aafe66dd50d5983399c37 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 12 May 2017 16:47:49 +0200 Subject: [PATCH] Add back stdout logging to development environment after rails_12factor was removed (#3011) --- config/environments/development.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/environments/development.rb b/config/environments/development.rb index c20d08493..86f29e3f4 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -25,6 +25,11 @@ Rails.application.configure do config.cache_store = :null_store end + ActiveSupport::Logger.new(STDOUT).tap do |logger| + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + # Don't care if the mailer can't send. config.action_mailer.raise_delivery_errors = false config.action_mailer.perform_caching = false