Those are the only things it needs to make a notification, what type
of exception it was, and the associated error message.
bjg
unread,
Jan 4, 2013, 8:34:44 AM1/4/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
But I can subscribe to a notification and get access to the 'exception' in the payload like so:
ActiveSupport::Notifications.subscribe "process_action.action_controller" do |name, start, finish, id, payload|
exception = payload[:exception]
# If the entire exception were in the payload or at least something containing
# the stacktrace I could log it, send an email etc.
end
I realize it's probably the way it is because we want the payload to be easily serializable so that if we want to push the event to redis or something that can be easily done, but might be nice if the stacktrace were available too.