DEV: Add silencer for verbose query logs in development.

DEV: Add silencer for verbose query logs in development.

diff --git a/config/environments/development.rb b/config/environments/development.rb
index e8d1d50..7cb2a61 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -82,6 +82,12 @@ Discourse::Application.configure do
       config.colorize_logging = true
     end
 
+    if ENV["RAILS_VERBOSE_QUERY_LOGS"] == "1"
+      ActiveRecord::LogSubscriber.backtrace_cleaner.add_silencer do |line|
+        line =~ /lib\/freedom_patches\/fast_pluck\.rb/
+      end
+    end
+
     if ENV['BULLET']
       Bullet.enable = true
       Bullet.rails_logger = true

GitHub sha: 426b62a0