Add support for Active Record query log tags (#33342)
This commit is contained in:
parent
db749c7d2b
commit
3f8f06eb46
2 changed files with 19 additions and 2 deletions
|
@ -108,6 +108,11 @@ module Mastodon
|
|||
config.x.mastodon = config_for(:mastodon)
|
||||
config.x.translation = config_for(:translation)
|
||||
|
||||
if ENV.fetch('QUERY_LOG_TAGS_ENABLED', 'false') == 'true'
|
||||
config.active_record.query_log_tags_enabled = ENV.fetch('QUERY_LOG_TAGS_ENABLED', 'false') == 'true'
|
||||
config.active_record.query_log_tags = [:namespaced_controller, :action, :sidekiq_job_class]
|
||||
end
|
||||
|
||||
config.to_prepare do
|
||||
Doorkeeper::AuthorizationsController.layout 'modal'
|
||||
Doorkeeper::AuthorizedApplicationsController.layout 'admin'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue