From 170d6fb35377a9b458287caab7b2c3fb7535938e Mon Sep 17 00:00:00 2001 From: ChaoticByte Date: Sat, 14 Oct 2023 10:48:06 +0200 Subject: [PATCH] Improved the wording of some debug messages and a line in the README --- README.md | 2 +- mail.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7634851..600c717 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ To show debug messages, set the `loglevel` to `3`. You define filters for notices to be sent per recipient. Multiple filters can be set per recipient and multiple criteria can be used per filter. The configuration field for those filters is `include`. See [Configuration](#configuration) for an example. -If a notice is included is determined by the following logic: +It is determined by the following logic, if a notice is included: ``` {criteria, criteria, ... ALL APPLY} diff --git a/mail.go b/mail.go index 62b53c6..a1c2ab9 100644 --- a/mail.go +++ b/mail.go @@ -65,7 +65,7 @@ func (r Recipient) filterAndSendNotices(notices []WidNotice, template MailTempla } slices.Reverse(filteredNotices) logger.debug(fmt.Sprintf("Including %v of %v notices for recipient %v", len(filteredNotices), len(notices), r.Address)) - logger.debug("Templating and sending mails for recipient " + r.Address + " ...") + logger.debug("Generating and sending mails to " + r.Address + " ...") for _, n := range filteredNotices { mailContent, err := template.generate(n) if err != nil { @@ -85,7 +85,7 @@ func (r Recipient) filterAndSendNotices(notices []WidNotice, template MailTempla return err } } - logger.debug("Sent all mails for recipient " + r.Address) + logger.debug("Successfully sent all mails to " + r.Address) return nil }