An Exceptional Blog: Send extra data with your exceptions
I’d been asking for this feature from my friends over at Contrast for a while, and they finally delivered. I’d like to get even more creative with this than the example. I want to save lots of stuff happening in the environment when the exception occurs such as PayPal API calls and responses. If I come up with anything interesting, I’ll post it.Have you ever wanted to log the email addresses of users who trigger exceptions in your application? You can add whatever information you like using Exceptional.context - for example, you could include the following in a rails before_filter.
Exceptional.context(:user_id => current_user.id, :email...
Source: exceptional-blog
