diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-12-20 12:25:32 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-12-20 12:25:32 +0000 |
commit | 0fdec26cf2fe5a74c7ef40dc03bdf5f43235f27b (patch) | |
tree | 26fd78ac80a9e4584f08344116247a1d98cebeac /config/initializers | |
parent | cf59a9b62e4450b601f28164b9ccd08ccf435a62 (diff) | |
download | redmine-0fdec26cf2fe5a74c7ef40dc03bdf5f43235f27b.tar.gz redmine-0fdec26cf2fe5a74c7ef40dc03bdf5f43235f27b.zip |
Backtrace cleaner should not clean plugin paths (#21534).
git-svn-id: http://svn.redmine.org/redmine/trunk@14987 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/backtrace_silencers.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb index 370315de2..890eede19 100644 --- a/config/initializers/backtrace_silencers.rb +++ b/config/initializers/backtrace_silencers.rb @@ -5,3 +5,7 @@ # You can also remove all the silencers if you're trying do debug a problem that might steem from framework code. # Rails.backtrace_cleaner.remove_silencers! + +# Do not remove plugins backtrace +Rails.backtrace_cleaner.remove_silencers! +Rails.backtrace_cleaner.add_silencer { |line| line !~ /^\/?(app|config|lib|plugins|test)/ } |