From 9641ba9264e044e8da7c4d7d8e07e1f6d0d643b8 Mon Sep 17 00:00:00 2001 From: Jaap Roes Date: Mon, 18 Jan 2021 09:07:11 +0100 Subject: [PATCH] Log errors with level error --- src/mailer/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mailer/engine.py b/src/mailer/engine.py index 56b36c1..a5ee03d 100644 --- a/src/mailer/engine.py +++ b/src/mailer/engine.py @@ -133,7 +133,7 @@ def handle_delivery_exception(connection, message, exc): smtplib.SMTPSenderRefused, socket_error)): message.defer() - logger.info("message deferred due to failure: %s" % exc) + logger.error("message deferred due to failure: %s" % exc) MessageLog.objects.log(message, RESULT_FAILURE, log_message=str(exc)) connection = None # i.e. enforce creation of a new connection