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

9 lines
372 B
Ruby
Raw Normal View History

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
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-05-09 12:01:36 +05:30
Rails.backtrace_cleaner.add_silencer { |line| line !~ Gitlab::APP_DIRS_PATTERN }