How to get Rails Heroku log backtrace from Heroku

2019-05-06 16:19发布

问题:

I using rails 3.2.3 on Heroku Bamboo stack. I got this error last night from my logs but can't diagnose exactly where and why its occurring. How can I get the entire backtrace of the error from my heroku logs?

app[web.2]: !! Unexpected error while processing request: can't modify frozen array
heroku[router]: Error H13 (Connection closed without response) -> GET

回答1:

This isn't a direct answer to your question, since as far as I know you cannot get the backgrace from the log file. you get what you get.

However, I can't recommend airbrake enough for this type of error capturing.