Rails/Ruby: Any way to shorten the stack traces?

logging, ruby-on-rails

Solution

Yes. Take a look at the ActiveSupport::BacktraceCleaner class. Nice explanation here.

Problem

I would like to limit the size of the stack traces I am seeing in Rails. I'm not really interested in debugging the Rails stack as much as my own application. Is there any built-in way to have Rails do this dynamically?

Original source