Permalink
Browse files

log sso name and email upon 500 error

This is so that in the case of failure, it is possible to identify and follow up
with the person whose ticket creation failed.
  • Loading branch information...
1 parent 7972910 commit ca1fb13f9925c225bd54d83108d96feff17401b8 @benilovj benilovj committed Mar 25, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/controllers/requests_controller.rb
@@ -38,6 +38,7 @@ def raise_ticket(ticket)
return render "support/zendesk_error", locals: { error_string: "Zendesk timed out", ticket: ticket }
end
rescue GDSZendesk::ZendeskError => e
+ request.env["sso-credentials"] = "#{current_user.name} <#{current_user.email}>"
ExceptionNotifier::Notifier.exception_notification(request.env, e).deliver
render "support/zendesk_error", status: 500, locals: { error_string: e.underlying_message,
ticket: ticket }

0 comments on commit ca1fb13

Please sign in to comment.