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 }