-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add error logging for SendNotificationEmailJob #21028
Conversation
9f499d2
to
51a49d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 👍
def handle_exception(e) | ||
Rails.logger.error( | ||
'Error sending simple forms notification email', | ||
message: e.message, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Want to confirm there's no possibility for PII / sensitive information being leaked in this log.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope this should be good for PII. The error message would not include PII unless it somehow accesses the form data from inside the form submission on its own.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 👍
Summary
This PR adds error logging for the Simple Forms
SendNotificationEmailJob
, which I think will illuminate an error we're seeing in the Benefits Intake Status Job.