From 157b7adbda48eaad7028ad40f622f8d66a689760 Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Mon, 8 Mar 2021 12:11:47 +0100 Subject: [PATCH] improve logging --- email_handler.py | 4 ++-- tests/api/test_custom_domain.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/email_handler.py b/email_handler.py index ce3f06e7..5838cad9 100644 --- a/email_handler.py +++ b/email_handler.py @@ -1612,8 +1612,8 @@ def handle_bounce(envelope, rcpt_to) -> str: if content_type != "multipart/report" or envelope.mail_from != "<>": # forward the email again to the alias # todo: remove logging - LOG.exception( - "Handle auto responder %s %s. Msg:\n%s", + LOG.warning( + "Handle autoreply %s %s. Msg:\n%s", content_type, envelope.mail_from, msg, diff --git a/tests/api/test_custom_domain.py b/tests/api/test_custom_domain.py index 84e0e03f..0f8458bd 100644 --- a/tests/api/test_custom_domain.py +++ b/tests/api/test_custom_domain.py @@ -29,7 +29,6 @@ def test_get_custom_domains(flask_client): assert domain["creation_timestamp"] - def test_get_custom_domain_trash(flask_client): user = login(flask_client)