mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 09:50:37 -06:00
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:
parent
fb056ae719
commit
1a423f3c2d
@ -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|
|
||||
|
Loading…
Reference in New Issue
Block a user