Skip to content

Commit

Permalink
Merge pull request #1288 from tgibson11/email-logs
Browse files Browse the repository at this point in the history
Improve emailing log messages
  • Loading branch information
robcarver17 authored Dec 1, 2023
2 parents d93edd2 + 391512c commit acd9643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syslogdiag/email_via_db_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -140,7 +140,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)
Expand Down

0 comments on commit acd9643

Please sign in to comment.