instance method
add_silencer
Ruby on Rails 4.2.9
Since v2.3.18Signature
add_silencer(&block)
Adds a silencer from the block provided. If the silencer returns true for a given line, it will be excluded from the clean backtrace.
# Will reject all lines that include the word "mongrel", like "/gems/mongrel/server.rb" or "/app/my_mongrel_server/rb" backtrace_cleaner.add_silencer { |line| line =~ /mongrel/ }
Parameters
-
blockblock
Source
# File activesupport/lib/active_support/backtrace_cleaner.rb, line 64
def add_silencer(&block)
@silencers << block
end
Defined in activesupport/lib/active_support/backtrace_cleaner.rb line 64
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::BacktraceCleaner