From 9aeceb9119e8a39c21a7264b9c7f1eec5d5fc39e Mon Sep 17 00:00:00 2001 From: Son Date: Tue, 5 Apr 2022 11:52:43 +0200 Subject: [PATCH] change logging for icloud bounce case --- email_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/email_handler.py b/email_handler.py index 6745ddb2..e772406f 100644 --- a/email_handler.py +++ b/email_handler.py @@ -2367,10 +2367,10 @@ def handle(envelope: Envelope, msg: Message) -> str: email_log = EmailLog.get(email_log_id) alias = Alias.get_by(email=rcpt_tos[0]) LOG.w( - "iCloud bounces %s %s msg=%s", + "iCloud bounces %s %s, saved to%s", email_log, alias, - msg.as_string(), + save_email_for_debugging(msg, file_name_prefix="icloud_bounce_"), ) return handle_bounce(envelope, email_log, msg)