Skip to content

Commit

Permalink
print email error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name authored and alphatownsman committed Jul 18, 2024
1 parent 19b0850 commit 4e995a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mastodon/models/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _send(email, subject, body):
fail_silently=False,
)
except Exception as e:
logger.error(f"send email {email} failed", extra={"exception": e})
logger.error(f"send email to {email} failed: {e}", extra={"exception": e})

@staticmethod
def generate_login_email(email: str, action: str) -> tuple[str, str]:
Expand Down

0 comments on commit 4e995a9

Please sign in to comment.