mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00
DEV: Add silencer for verbose query logs in development.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user