DEV: Enable query_log_tags_enabled in the test environment (#25104)

Why this change?

When logging ActiveRecord query logs in the test environment, we want to
include more runtime information about the SQL statement as well.

See
https://guides.rubyonrails.org/debugging_rails_applications.html#verbose-query-logs
for more details
This commit is contained in:
Alan Guo Xiang Tan 2024-01-03 13:11:16 +08:00 committed by GitHub
parent fb056ae719
commit 1a423f3c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,6 +51,7 @@ Discourse::Application.configure do
config.assets.digest = false
config.active_record.verbose_query_logs = true
config.active_record.query_log_tags_enabled = true
config.after_initialize do
ActiveRecord::LogSubscriber.backtrace_cleaner.add_silencer do |line|