From 391512c5d34c3f0f06191b73adb81af73f99090b Mon Sep 17 00:00:00 2001 From: todd <3578666+tgibson11@users.noreply.github.com> Date: Tue, 14 Nov 2023 07:31:00 -0700 Subject: [PATCH] Improve log messages when there is a problem emailing a report (cherry picked from commit ca311ccc0fb32b024f5fd20117d620b9260e10c2) --- syslogdiag/email_via_db_interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syslogdiag/email_via_db_interface.py b/syslogdiag/email_via_db_interface.py index 3deb1886b1..e37cd039f4 100644 --- a/syslogdiag/email_via_db_interface.py +++ b/syslogdiag/email_via_db_interface.py @@ -50,7 +50,7 @@ def send_email_and_record_date_or_store_on_fail( except Exception as e: # problem sending emails will store instead data.log.debug( - "Problem %s sending email subject %s, but message is stored" + "Problem %s sending email subject %s, but message will be stored" % (str(e), subject) ) store_message(data, body, subject, email_is_report=email_is_report) @@ -141,7 +141,7 @@ def record_date_of_email_warning_send(data, subject): def store_message(data, body, subject, email_is_report=False): if email_is_report: - # can't store reports + data.log.debug("Message not stored: can't store reports") return None email_store_file = get_storage_filename(data)