On Wed, Jan 2, 2013 at 12:34 PM, bjg <[email protected]> wrote:
> This is probably a stupid question, but I'm wondering if anyone knows why
>
> https://github.com/rails/rails/blob/master/activesupport/lib/active_support/notifications/instrumenter.rb
>
> doesn't just save the actual exception in the payload when an exception
> occurs. Instead it does this:
>
>         rescue Exception => e
>           payload[:exception] = [e.class.name, e.message]
>           raise e

Those are the only things it needs to make a notification, what type
of exception it was, and the associated error message.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to