mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 00:03:03 +08:00
improve logging
This commit is contained in:
parent
9788c5afbb
commit
6615631b4e
1 changed files with 2 additions and 2 deletions
|
@ -185,6 +185,8 @@ def send_email(
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
LOG.d("send email to %s, subject %s", to_email, subject)
|
||||||
|
|
||||||
# host IP, setup via Docker network
|
# host IP, setup via Docker network
|
||||||
smtp = SMTP(POSTFIX_SERVER, 25)
|
smtp = SMTP(POSTFIX_SERVER, 25)
|
||||||
|
|
||||||
|
@ -214,11 +216,9 @@ def send_email(
|
||||||
msg["To"] = to_email
|
msg["To"] = to_email
|
||||||
|
|
||||||
msg_id_header = make_msgid()
|
msg_id_header = make_msgid()
|
||||||
LOG.d("message-id %s", msg_id_header)
|
|
||||||
msg["Message-ID"] = msg_id_header
|
msg["Message-ID"] = msg_id_header
|
||||||
|
|
||||||
date_header = formatdate()
|
date_header = formatdate()
|
||||||
LOG.d("Date header: %s", date_header)
|
|
||||||
msg["Date"] = date_header
|
msg["Date"] = date_header
|
||||||
|
|
||||||
# add DKIM
|
# add DKIM
|
||||||
|
|
Loading…
Reference in a new issue