From a20dca73277acd305f1e804bf8d778a5deaef658 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Sun, 24 Nov 2024 15:00:37 -0500 Subject: [PATCH] Restore stdout logging setting in development environment (#33057) --- config/environments/development.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/environments/development.rb b/config/environments/development.rb index 8533935a88..bbdd9e2fce 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -37,6 +37,11 @@ Rails.application.configure do config.action_controller.forgery_protection_origin_check = ENV['DISABLE_FORGERY_REQUEST_PROTECTION'].nil? + ActiveSupport::Logger.new($stdout).tap do |logger| + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + # Generate random VAPID keys Webpush.generate_key.tap do |vapid_key| config.x.vapid_private_key = vapid_key.private_key