exception_notification
exception_notification copied to clipboard
Customize subject
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 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