-
Notifications
You must be signed in to change notification settings - Fork 436
Closed
Labels
Milestone
Description
In Rails, the exception backtrace can be pretty noisy with a lot of stuff that doesn't add value such as your development server files. I'm used to setting up things like this when I first get started.
#config/initializers/backtrace_cleaner.rb
Rails.backtrace_cleaner.add_silencer { |line| line =~ /newrelic/ }
Rails.backtrace_cleaner.add_silencer { |line| line =~ /new_relic/ }
Rails.backtrace_cleaner.add_silencer { |line| line =~ /thin/ }
Rails.backtrace_cleaner.add_silencer { |line| line =~ /spring/ }Since installing better_errors, these lines have returned. It seems plausible to read the silencers in the Rails.backtrace_cleaner object before displaying output or to provide a specific interface for filtering in better_errors.
Note: This is most important in the server log since it is harder to visually scan the plaintext.
onemanstartup, pzgz and frsantos