Add Slack Channel, IconEmoji, and IconURL options (#241)

This commit is contained in:
Mario Tacke 2019-04-07 08:38:20 -07:00 committed by Simon Aronsson
parent ebb416819c
commit da41afc1d7
3 changed files with 26 additions and 0 deletions

View file

@ -19,6 +19,9 @@ func newSlackNotifier(c *cli.Context, acceptedLogLevels []log.Level) typeNotifie
SlackrusHook: slackrus.SlackrusHook{
HookURL: c.GlobalString("notification-slack-hook-url"),
Username: c.GlobalString("notification-slack-identifier"),
Channel: c.GlobalString("notification-slack-channel"),
IconEmoji: c.GlobalString("notification-slack-icon-emoji"),
IconURL: c.GlobalString("notification-slack-icon-url"),
AcceptedLevels: acceptedLogLevels,
},
}