mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 09:42:45 +08: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
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user