fix(notifications): default templates and logic (#1010)

* fix(notifications): default templates and logic
* fix multi-entry report notifs and add test
* add tests for log queueing
This commit is contained in:
nils måsén 2021-09-19 18:06:14 +02:00 committed by GitHub
parent fc31c6eb26
commit cd0ec88764
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 195 additions and 57 deletions

View file

@ -30,7 +30,8 @@ func NewNotifier(c *cobra.Command) ty.Notifier {
urls = AppendLegacyUrls(urls, c)
return newShoutrrrNotifier(tplString, acceptedLogLevels, !reportTemplate, urls...)
title := GetTitle(c)
return newShoutrrrNotifier(tplString, acceptedLogLevels, !reportTemplate, title, urls...)
}
// AppendLegacyUrls creates shoutrrr equivalent URLs from legacy notification flags