Merge pull request #22 from hunterlong/dev

slack fix
pull/26/head
Hunter Long 2018-07-12 00:30:20 -07:00 committed by GitHub
commit b480c79bc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ func (u *Slack) Run() error {
for _, msg := range slackMessages { for _, msg := range slackMessages {
utils.Log(1, fmt.Sprintf("Sending JSON to Slack Webhook: %v", msg)) utils.Log(1, fmt.Sprintf("Sending JSON to Slack Webhook: %v", msg))
client := http.Client{Timeout: 15 * time.Second} client := http.Client{Timeout: 15 * time.Second}
_, err := client.Post("https://hooks.slack.com/services/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", "application/json", bytes.NewBuffer([]byte(msg))) _, err := client.Post(u.Host, "application/json", bytes.NewBuffer([]byte(msg)))
if err != nil { if err != nil {
utils.Log(3, fmt.Sprintf("Issue sending Slack notification: %v", err)) utils.Log(3, fmt.Sprintf("Issue sending Slack notification: %v", err))
} }