Skip to content

Commit

Permalink
Merge pull request #4459 from kubernetes-sigs/raffo/fix-logline
Browse files Browse the repository at this point in the history
fix logline mentioning plugin api
  • Loading branch information
k8s-ci-robot committed May 13, 2024
2 parents 16a741b + a44a44c commit d422e39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provider/webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func NewWebhookProvider(u string) (*WebhookProvider, error) {
err = backoff.Retry(func() error {
resp, err = client.Do(req)
if err != nil {
log.Debugf("Failed to connect to plugin api: %v", err)
log.Debugf("Failed to connect to webhook: %v", err)
return err
}
// we currently only use 200 as success, but considering okay all 2XX for future usage
Expand All @@ -134,7 +134,7 @@ func NewWebhookProvider(u string) (*WebhookProvider, error) {
}, backoff.WithMaxRetries(backoff.NewExponentialBackOff(), maxRetries))

if err != nil {
return nil, fmt.Errorf("failed to connect to plugin api: %v", err)
return nil, fmt.Errorf("failed to connect to webhook: %v", err)
}

contentType := resp.Header.Get(webhookapi.ContentTypeHeader)
Expand Down

0 comments on commit d422e39

Please sign in to comment.