only print out plaintext when NOT_SEND_EMAIL

This commit is contained in:
Son NK 2019-12-22 15:58:07 +00:00
parent 441fc773ba
commit ea1492904a

View file

@ -104,11 +104,10 @@ def send_test_email_alias(email, name):
def send_email(to_email, subject, plaintext, html): def send_email(to_email, subject, plaintext, html):
if NOT_SEND_EMAIL: if NOT_SEND_EMAIL:
LOG.d( LOG.d(
"send email with subject %s to %s, plaintext: %s, html:%s", "send email with subject %s to %s, plaintext: %s",
subject, subject,
to_email, to_email,
plaintext, plaintext,
html,
) )
return return