Merge pull request #4459 from kubernetes-sigs/raffo/fix-logline

fix logline mentioning plugin api
This commit is contained in:
Kubernetes Prow Robot 2024-05-12 23:54:55 -07:00 committed by GitHub
commit d422e39efc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,7 +123,7 @@ func NewWebhookProvider(u string) (*WebhookProvider, error) {
err = backoff.Retry(func() error { err = backoff.Retry(func() error {
resp, err = client.Do(req) resp, err = client.Do(req)
if err != nil { if err != nil {
log.Debugf("Failed to connect to plugin api: %v", err) log.Debugf("Failed to connect to webhook: %v", err)
return err return err
} }
// we currently only use 200 as success, but considering okay all 2XX for future usage // we currently only use 200 as success, but considering okay all 2XX for future usage
@ -134,7 +134,7 @@ func NewWebhookProvider(u string) (*WebhookProvider, error) {
}, backoff.WithMaxRetries(backoff.NewExponentialBackOff(), maxRetries)) }, backoff.WithMaxRetries(backoff.NewExponentialBackOff(), maxRetries))
if err != nil { 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) contentType := resp.Header.Get(webhookapi.ContentTypeHeader)