Stack traces from plugins missing in Rails 2.3?

9 views
Skip to first unread message

Peter Marklund

unread,
Apr 3, 2009, 4:01:08 AM4/3/09
to Ruby on Rails: Core
Hi!
Has anyone experienced that stack traces are missing when exceptions
are raised in plugin code? We started having this issue when upgrading
from Rails 2.1 to Rails 2.3.2. If I move the code into the application
I get the stack trace back. Any ideas what could be causing this? How
is Rails interfering with the the stack trace? Any pointers would be
appreciated.

Thanks!

Peter Marklund
http://marklunds.com

James Adam

unread,
Apr 3, 2009, 11:23:48 AM4/3/09
to Ruby on Rails: Core
I can't replicate this here - I created a dummy class in a plugin,
with a method that raised an exception, then called that method in a
controller method from the app. I see the stack track in the response.

Peter Marklund

unread,
Apr 6, 2009, 3:21:01 AM4/6/09
to Ruby on Rails: Core
Sorry, I hadn't seen the new BackTraceCleaner class and I was
enlightened by a friend about this post:

http://afreshcup.com/2008/11/29/rails-23-backtrace-silencing

I'm not sure cleaning out plugin backtraces is a good default setting
though as others are bound to have debugging nightmares similar to
mine. I have never been too bothered by long stacktraces Rails, but I
suppose since this feature was introduced, a lot of people have.

Cheers

Peter
Reply all
Reply to author
Forward
0 new messages