Merge pull request #168 from AnalogJ/cowboy_coding_fixes

fix error log.
This commit is contained in:
Jason Kulatunga
2021-04-25 20:18:42 -07:00
committed by GitHub
2 changed files with 7 additions and 3 deletions
@@ -129,7 +129,7 @@ OPTIONS:
if config.IsSet("log.file") && len(config.GetString("log.file")) > 0 {
logFile, err := os.OpenFile(config.GetString("log.file"), os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
logrus.Errorf("Failed to open log file %s for output: %s", config.IsSet("log.file"), err)
logrus.Errorf("Failed to open log file %s for output: %s", config.GetString("log.file"), err)
return err
}
defer logFile.Close()
+6 -2
View File
@@ -239,15 +239,19 @@ func (n *Notify) GenShoutrrrNotificationParams(shoutrrrUrl string) (string, *sho
subject := n.Payload.Subject
switch serviceName {
// no params supported for these services
case "discord", "hangouts", "ifttt", "mattermost", "teams", "rocketchat":
case "hangouts", "mattermost", "teams", "rocketchat":
break
case "discord":
(*params)["title"] = subject
case "gotify":
(*params)["title"] = subject
case "ifttt":
(*params)["title"] = subject
case "join":
(*params)["title"] = subject
(*params)["icon"] = logoUrl
case "opsgenie":
(*params)["description"] = subject
(*params)["title"] = subject
case "pushbullet":
(*params)["title"] = subject
case "pushover":