mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-07 18:31:07 +00:00
Use ActiveSupport::TaggedLogging.logger
shorthand to set logger (#34734)
This commit is contained in:
parent
a8f12a6fd8
commit
855022f4d9
|
@ -37,10 +37,8 @@ Rails.application.configure do
|
||||||
|
|
||||||
config.action_controller.forgery_protection_origin_check = ENV['DISABLE_FORGERY_REQUEST_PROTECTION'].nil?
|
config.action_controller.forgery_protection_origin_check = ENV['DISABLE_FORGERY_REQUEST_PROTECTION'].nil?
|
||||||
|
|
||||||
ActiveSupport::Logger.new($stdout).tap do |logger|
|
# Override default file logging in favor of STDOUT logging in dev environment
|
||||||
logger.formatter = config.log_formatter
|
config.logger = ActiveSupport::TaggedLogging.logger($stdout, formatter: config.log_formatter)
|
||||||
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Generate random VAPID keys
|
# Generate random VAPID keys
|
||||||
Webpush.generate_key.tap do |vapid_key|
|
Webpush.generate_key.tap do |vapid_key|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user