Slack notification: add channel

Currently a failure is logged as:
 msg="Sent Slack notification: 17555453829685976206: HTTP 500: Invalid channel specified"

 Add the actual channel in there to aid in debugging.
This commit is contained in:
Miek Gieben 2015-07-21 09:57:08 +01:00
parent 7859ccb570
commit abacb716f5
1 changed files with 1 additions and 1 deletions

View File

@ -340,7 +340,7 @@ func (n *notifier) sendSlackNotification(op notificationOp, config *pb.SlackConf
return err
}
log.Infof("Sent Slack notification: %v: HTTP %d: %s", incidentKey, resp.StatusCode, respBuf)
log.Infof("Sent Slack notification (channel %s): %v: HTTP %d: %s", config.GetChannel(), incidentKey, resp.StatusCode, respBuf)
// BUG: Check response for result of operation.
return nil
}