diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-12 16:47:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-12 16:47:49 +0200 |
commit | 2cc0d56652906e5c021aafe66dd50d5983399c37 (patch) | |
tree | 3bf2f0c11829c39c3916c74651de00295d7c7eea /config/environments | |
parent | e0c3ed29d8fbd22290a050596ddb9b01dfeae396 (diff) |
Add back stdout logging to development environment after rails_12factor was removed (#3011)
Diffstat (limited to 'config/environments')
-rw-r--r-- | config/environments/development.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |