generated from bisco/codex-bootstrap
fix: log confirmation link before email delivery
This commit is contained in:
@@ -50,11 +50,14 @@ def send_confirmation_email(*, reservation, raw_confirmation_token):
|
||||
fail_silently=False,
|
||||
)
|
||||
except Exception:
|
||||
_log_confirmation_link_for_local_debug(
|
||||
reservation=reservation,
|
||||
confirmation_link=confirmation_link,
|
||||
reason="email send failure fallback",
|
||||
)
|
||||
if settings.LOG_RESERVATION_CONFIRMATION_URLS:
|
||||
logger.warning(
|
||||
"Failed to send confirmation email for reservation %s in local/debug mode.",
|
||||
reservation.id,
|
||||
exc_info=True,
|
||||
)
|
||||
return
|
||||
|
||||
logger.exception(
|
||||
"Failed to send confirmation email for reservation %s.",
|
||||
reservation.id,
|
||||
|
||||
Reference in New Issue
Block a user