Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible to use BacktraceCleaner? #17

Closed
dchersey opened this issue Feb 3, 2014 · 1 comment
Closed

possible to use BacktraceCleaner? #17

dchersey opened this issue Feb 3, 2014 · 1 comment

Comments

@dchersey
Copy link

dchersey commented Feb 3, 2014

Is it possible to use ActiveSupport::Backtrace cleaner in conjunction to filter out gem and rails clutter from the backtrace?

Something like:

bc = ActiveSupport::BacktraceCleaner.new
bc.add_filter { | line | line.gsub(Rails.root.to_s, '' }
bc.add_silencer { | line | line =~ /vendor/ }

then to use stack explorer on a filtered backtrace (bc.clean)?

@joallard
Copy link
Collaborator

Closing in favor of #23, I'll check it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants