From 796ad58dcad1902833bdca2d7063d9dec5ea06a5 Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Mon, 8 Mar 2021 12:08:23 +0100 Subject: [PATCH] improve logging --- email_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/email_handler.py b/email_handler.py index 9f7a61fc..ed972f3f 100644 --- a/email_handler.py +++ b/email_handler.py @@ -706,7 +706,7 @@ def forward_email_to_mailbox( contact_from_header = msg["From"] new_from_header = contact.new_addr() add_or_replace_header(msg, "From", new_from_header) - LOG.d("new_from_header:%s, old header %s", new_from_header, contact_from_header) + LOG.d("From header, new %s, old %s", new_from_header, contact_from_header) # replace CC & To emails by reverse-alias for all emails that are not alias replace_header_when_forward(msg, alias, "Cc") @@ -1014,7 +1014,7 @@ def spf_pass( msg: Message, ) -> bool: if ip: - LOG.d("Enforce SPF") + LOG.d("Enforce SPF on %s %s", ip, envelope.mail_from) try: r = spf.check2(i=ip, s=envelope.mail_from, h=None) except Exception: