Fix error logging on domain and portfolios invitations #3401
Labels
bundled
Parent ticket will be sprinted and this ticket is included in the parent
dev
issue is for the dev team
Feature: 🏢 Org Model
Issue description
When adding a domain manager, system attempts to send emails to all existing domain managers before updating registrar.
If any of the emails to existing domain managers fails, the entire action fails midstream blocking the domain invitation. This will be handled in another bug ticket however, when running into this scenario on getgov-development, we found out that the error handling had it's own bug:
the traceback was not logged at all and we couldn't trace the cause of why email sending worked for some managers and not this particular domain manager.
It appears the error handling added around invitations needs to be altered to insure tracebacks are logged and helpful information is provided to the person debugging.
Acceptance criteria
Additional context
No response
Links to other issues
No response
The text was updated successfully, but these errors were encountered: