Ben Downey
Ben Downey

Reputation: 2665

Configure Rails Logger to store full stack trace by default

By default, I only get a partial stack trace of an errors. How do I configure a Rails app to log the entire stack trace in the server logs?

I'm looking for a change I can make at the configuration level, as opposed to diving into individual classes and logging the full backtrace by rescuing the exceptions.

Upvotes: 2

Views: 1548

Answers (1)

Stobbej
Stobbej

Reputation: 1090

When you put your app on the highest log level (which is ":debug"), you'd get what want:

Rails guides on log level

Upvotes: 1

Related Questions