2021-02-03 16:09:17 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
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
|
2021-11-18 19:09:40 -05:00
|
|
|
if Rails.env.development? || Rails.env.test?
|
|
|
|
Rails.backtrace_cleaner.add_silencer { |line| %r{^lib/gitlab/database/load_balancing}.match?(line) }
|
2020-01-31 22:09:04 -05:00
|
|
|
end
|
|
|
|
|
2020-08-21 23:10:32 -04:00
|
|
|
Rails.backtrace_cleaner.add_silencer { |line| !Gitlab::APP_DIRS_PATTERN.match?(line) }
|