add_silencer(&block) public

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/ }
Show source
Register or log in to add new notes.