Skip to content

Commit

Permalink
fix logline mentioning plugin api
Browse files Browse the repository at this point in the history
Signed-off-by: Raffaele Di Fazio <[email protected]>
  • Loading branch information
Raffo committed May 11, 2024
1 parent 6b51068 commit a44a44c
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 a44a44c

Please sign in to comment.