2018-03-09 08:35:21 -05:00
|
|
|
Rails.backtrace_cleaner.remove_silencers!
|
2020-01-31 22:09:04 -05:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2018-03-09 08:35:21 -05:00
|
|
|
Rails.backtrace_cleaner.add_silencer { |line| line !~ Gitlab::APP_DIRS_PATTERN }
|