debian-mirror-gitlab/config/initializers/backtrace_silencers.rb
2022-01-26 12:08:38 +05:30

10 lines
395 B
Ruby

# frozen_string_literal: true
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?
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) }