In my production app, I occasionally get the “We’re sorry…” error
screen. But in most (if not all) cases, there is no corresponding error
in the logs. This makes it difficult to track down bugs.
It seems that what’s happening is that certain errors are either so
fundamental, or happen so early in the response process, that they don’t
hit the logs.
My question is, is there any way to trap information whenever Rails
displays that error screen?
On Nov 15, 2007 3:16 PM, Brian A. [email protected]
wrote:
displays that error screen?
config.log_level = :debug
–
Greg D.
http://destiney.com/
Greg D. wrote:
On Nov 15, 2007 3:16 PM, Brian A. [email protected]
wrote:
displays that error screen?
config.log_level = :debug
–
Greg D.
http://destiney.com/
Thanks for the rapid response.
But doesn’t “debug” want to log everything (like SQL queries)? I just
want to log some info whenever Rails throws an error.