debian-mirror-gitlab/config/initializers/backtrace_silencers.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
395 B
Ruby
Raw Normal View History

2021-03-11 19:13:27 +05:30
# frozen_string_literal: true
2018-05-09 12:01:36 +05:30
Rails.backtrace_cleaner.remove_silencers!
2020-03-13 15:44:24 +05:30
# This allows us to see the proper caller of SQL calls in {development,test}.log
2022-01-26 12:08:38 +05:30
if Rails.env.development? || Rails.env.test?
Rails.backtrace_cleaner.add_silencer { |line| %r{^lib/gitlab/database/load_balancing}.match?(line) }
2020-03-13 15:44:24 +05:30
end
2020-11-24 15:15:51 +05:30
Rails.backtrace_cleaner.add_silencer { |line| !Gitlab::APP_DIRS_PATTERN.match?(line) }