Implement custom logging email backend for development: log outgoing emails to Loguru and stdout
This commit is contained in:
@@ -5044,6 +5044,8 @@ def candidate_email_details(request, cid, resend=False):
|
||||
resend_flag = False
|
||||
|
||||
email_sent, comment = user.email_details(resend=resend_flag)
|
||||
|
||||
logger.debug(f"Email details sent to CID {cid}: sent={email_sent}, comment={comment}")
|
||||
|
||||
return JsonResponse({"sent": email_sent, "comment": str(comment)})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user