Adventures with Ruby

Silencing Passenger

View Comments

When using Rails 2.3 and Passenger, you can do yourself a favor by adding this line to config/silencers/backtrace_silencer.rb

[sourcecode language='ruby']
Rails.backtrace_cleaner.add_silencer { |line| line =~ /^\s*passenger/ }
[/sourcecode]
sssh
Saves you scrolling through the endless backtraces passenger gives you for free :)

PS. A colleague tweeted this lovely backtrace of a spring with grails error. I say: backtrace cleaner FTW!

Written by Iain Hecker

June 19th, 2009 at 6:33 pm

Posted in Uncategorized

blog comments powered by Disqus