Skip to content

Commit

Permalink
fix: better error logging while sending email (frappe#20570)
Browse files Browse the repository at this point in the history
  • Loading branch information
phot0n committed Apr 3, 2023
1 parent f04334a commit 8ae4d55
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frappe/email/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,9 +634,8 @@ def send_one(email, smtpserver=None, auto_commit=True, now=False):
print(frappe.get_traceback())
raise e

else:
# log to Error Log
frappe.log_error("frappe.email.queue.flush")
# log to Error Log
frappe.log_error(title="frappe.email.queue.flush")


def prepare_message(email, recipient, recipients_list):
Expand Down

0 comments on commit 8ae4d55

Please sign in to comment.