Commit 61618c71 authored by Michael Kozono's avatar Michael Kozono

Merge branch 'sh-add-ee-load-balancer-silencer' into 'master'

Add a Rails backtrace silencer for EE load balancing code

See merge request gitlab-org/gitlab!23667
parents e7f1506b 5afeb8b4
Rails.backtrace_cleaner.remove_silencers!
# This allows us to see the proper caller of SQL calls in {development,test}.log
if (Rails.env.development? || Rails.env.test?) && Gitlab.ee?
Rails.backtrace_cleaner.add_silencer { |line| line =~ %r(^ee/lib/gitlab/database/load_balancing) }
end
Rails.backtrace_cleaner.add_silencer { |line| line !~ Gitlab::APP_DIRS_PATTERN }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment