DEV: Silence all freedom patches trace in verbose query logs.

This commit is contained in:
Guo Xiang Tan
2020-06-05 09:09:54 +08:00
parent e82d4d8a75
commit 320b1e95bf

View File

@@ -84,7 +84,7 @@ Discourse::Application.configure do
if ENV["RAILS_VERBOSE_QUERY_LOGS"] == "1"
ActiveRecord::LogSubscriber.backtrace_cleaner.add_silencer do |line|
line =~ /lib\/freedom_patches\/fast_pluck\.rb/
line =~ /lib\/freedom_patches/
end
end