mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-30 13:03:14 +02:00
For failed email logger messages to be errors and have a standardized output
This commit is contained in:
parent
973b392923
commit
508bd30434
8 changed files with 175 additions and 78 deletions
|
@ -1018,8 +1018,14 @@ class Review(DomainRequestWizard):
|
|||
context=context,
|
||||
)
|
||||
logger.info("A submission confirmation email was sent to ombdotgov@omb.eop.gov")
|
||||
except EmailSendingError:
|
||||
logger.warning("Failed to send confirmation email", exc_info=True)
|
||||
except EmailSendingError as err:
|
||||
logger.error(
|
||||
"Failed to send OMB submission confirmation email:\n"
|
||||
f" Subject template: omb_submission_confirmation_subject.txt\n"
|
||||
f" To: ombdotgov@omb.eop.gov\n"
|
||||
f" Error: {err}",
|
||||
exc_info=True,
|
||||
)
|
||||
|
||||
|
||||
class Finished(DomainRequestWizard):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue