mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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
|
config.colorize_logging = true
|
||||||
end
|
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']
|
if ENV['BULLET']
|
||||||
Bullet.enable = true
|
Bullet.enable = true
|
||||||
Bullet.rails_logger = true
|
Bullet.rails_logger = true
|
||||||
|
|||||||
Reference in New Issue
Block a user