improve logging

This commit is contained in:
Son NK 2021-03-08 12:11:47 +01:00
parent 26613cdeeb
commit 157b7adbda
2 changed files with 2 additions and 3 deletions

View file

@ -1612,8 +1612,8 @@ def handle_bounce(envelope, rcpt_to) -> str:
if content_type != "multipart/report" or envelope.mail_from != "<>": if content_type != "multipart/report" or envelope.mail_from != "<>":
# forward the email again to the alias # forward the email again to the alias
# todo: remove logging # todo: remove logging
LOG.exception( LOG.warning(
"Handle auto responder %s %s. Msg:\n%s", "Handle autoreply %s %s. Msg:\n%s",
content_type, content_type,
envelope.mail_from, envelope.mail_from,
msg, msg,

View file

@ -29,7 +29,6 @@ def test_get_custom_domains(flask_client):
assert domain["creation_timestamp"] assert domain["creation_timestamp"]
def test_get_custom_domain_trash(flask_client): def test_get_custom_domain_trash(flask_client):
user = login(flask_client) user = login(flask_client)