Skip to content

Doesn't respect application's BacktraceCleaner #308

@JonCrawford

Description

@JonCrawford

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.

http://api.rubyonrails.org/classes/ActiveSupport/BacktraceCleaner.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions