Commit 5d5ce66d authored by Thong Kuah's avatar Thong Kuah

Merge branch 'pl-silence-load-balancer-backtrace-foss' into 'master'

Silence load balancing from backtrace also for FOSS

See merge request gitlab-org/gitlab!74797
parents 701b39fc 116676fc
......@@ -3,8 +3,8 @@
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| %r(^lib/gitlab/database/load_balancing).match?(line) }
if Rails.env.development? || Rails.env.test?
Rails.backtrace_cleaner.add_silencer { |line| %r{^lib/gitlab/database/load_balancing}.match?(line) }
end
Rails.backtrace_cleaner.add_silencer { |line| !Gitlab::APP_DIRS_PATTERN.match?(line) }
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