Improved the wording of some debug messages and a line in the README

This commit is contained in:
ChaoticByte 2023-10-14 10:48:06 +02:00
parent 9534dc3492
commit 170d6fb353
2 changed files with 3 additions and 3 deletions

View file

@ -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. 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} {criteria, criteria, ... ALL APPLY}

View file

@ -65,7 +65,7 @@ func (r Recipient) filterAndSendNotices(notices []WidNotice, template MailTempla
} }
slices.Reverse(filteredNotices) slices.Reverse(filteredNotices)
logger.debug(fmt.Sprintf("Including %v of %v notices for recipient %v", len(filteredNotices), len(notices), r.Address)) 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 { for _, n := range filteredNotices {
mailContent, err := template.generate(n) mailContent, err := template.generate(n)
if err != nil { if err != nil {
@ -85,7 +85,7 @@ func (r Recipient) filterAndSendNotices(notices []WidNotice, template MailTempla
return err return err
} }
} }
logger.debug("Sent all mails for recipient " + r.Address) logger.debug("Successfully sent all mails to " + r.Address)
return nil return nil
} }