From 1a423f3c2db8daf0030a3d3383ffb6c46141aa28 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Wed, 3 Jan 2024 13:11:16 +0800 Subject: [PATCH] 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 --- config/environments/test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/environments/test.rb b/config/environments/test.rb index 9106df9b909..370404eb11a 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -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|