mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
DEV: Add silencer for verbose query logs in development.
This commit is contained in:
parent
3dd1778199
commit
426b62a04a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user