Use `ActiveSupport::TaggedLogging.logger` shorthand to set logger (#34734)

pull/34746/head
Matt Jankowski 6 months ago committed by GitHub
parent a8f12a6fd8
commit 855022f4d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -37,10 +37,8 @@ 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
# Override default file logging in favor of STDOUT logging in dev environment
config.logger = ActiveSupport::TaggedLogging.logger($stdout, formatter: config.log_formatter)
# Generate random VAPID keys
Webpush.generate_key.tap do |vapid_key|

Loading…
Cancel
Save