exception_notification icon indicating copy to clipboard operation
exception_notification copied to clipboard

Customize subject

Open mkhanal opened this issue 7 years ago • 1 comments

It would be handy if the subject could have some information passed so that it can be grouped/searched/managed based on subject.

Eg: An application specific support ticket is automatically created for an exception. It would be handy to be able to add that to the subject. This also helps integration with other support systems.

ExceptionNotifier.notify_exception(error, 
     :env  => request.env, 
     :subject => "Error in application #{error_support_code}" 
     :data => {:content   => content})

mkhanal avatar Nov 09 '17 02:11 mkhanal

@mkhanal this is kind of a hack, but I think you can specify a prefix for the subject. Something like this:

    ExceptionNotifier.notify_exception(
      error,
      env: request.env,
      email_prefix: "[#{error_support_code}] ",
      data: { content: content }
    )

If this is not enough, I guess we can add a new email_subject option to the email notifier

EmilioCristalli avatar Dec 07 '18 03:12 EmilioCristalli