Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaojingchen committed Apr 30, 2019
1 parent 4743c3b commit c63e1d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/slack/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func SendWarnMsg(msg string) error {
func NotifyAndPanic(err error) {
sendErr := SendErrMsg(err.Error())
if sendErr != nil {
glog.Errorf("failed to notify slack[%s] the massage: %v,error: %v", WebhookUrl, err, sendErr)
glog.Warningf("failed to notify slack[%s] the massage: %v,error: %v", WebhookUrl, err, sendErr)
}
time.Sleep(3 * time.Second)
panic(err)
Expand All @@ -157,7 +157,7 @@ func NotifyAndPanic(err error) {
func NotifyAndCompleted(msg string) {
sendErr := SendGoodMsg(msg)
if sendErr != nil {
glog.Errorf("failed to notify slack[%s] the massage: %s,error: %v", WebhookUrl, msg, sendErr)
glog.Warningf("failed to notify slack[%s] the massage: %s,error: %v", WebhookUrl, msg, sendErr)
}
glog.Infof(msg)
}

0 comments on commit c63e1d4

Please sign in to comment.