Skip to content
This repository
Browse code

Only silence backtrace from plugin lib dirs

  • Loading branch information...
commit 42b32938d99d8f930e3020659ec0619aa5205c05 1 parent 658cf55
Jeremy Kemper jeremy authored wycats committed

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  railties/lib/rails/backtrace_cleaner.rb
3  railties/lib/rails/backtrace_cleaner.rb
@@ -2,7 +2,7 @@ module Rails
2 2 class BacktraceCleaner < ActiveSupport::BacktraceCleaner
3 3 ERB_METHOD_SIG = /:in `_run_erb_.*/
4 4
5   - VENDOR_DIRS = %w( vendor/plugins vendor/gems vendor/rails )
  5 + VENDOR_DIRS = %w( vendor/gems vendor/rails )
6 6 SERVER_DIRS = %w( lib/mongrel bin/mongrel
7 7 lib/passenger bin/passenger-spawn-server
8 8 lib/rack )
@@ -20,6 +20,7 @@ def initialize
20 20 add_filter { |line| line.sub('./', '/') } # for tests
21 21 add_filter { |line| line.sub(/(#{GEMS_DIR})\/gems\/([a-z]+)-([0-9.]+)\/(.*)/, '\2 (\3) \4')} # http://gist.github.com/30430
22 22 add_silencer { |line| ALL_NOISE.any? { |dir| line.include?(dir) } }
  23 + add_silencer { |line| line =~ %r(vendor/plugins/[^\/]+/lib) }
23 24 end
24 25 end
25 26

0 comments on commit 42b3293

Please sign in to comment.
Something went wrong with that request. Please try again.