Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix logline mentioning plugin api #4459

Merged
merged 1 commit into from
May 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading