Skip to content

Commit 83ac475

Browse files
committed
add logs
1 parent 043e093 commit 83ac475

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/connector/client/helper.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import (
1010
"time"
1111

1212
v2 "github.com/conductorone/baton-sdk/pb/c1/connector/v2"
13+
"github.com/grpc-ecosystem/go-grpc-middleware/logging/zap/ctxzap"
14+
"go.uber.org/zap"
1315
)
1416

1517
type KeysetPaginationOpts struct {
@@ -47,6 +49,8 @@ func (c *GitlabClient) listWithKeysetPagination(
4749
apiURL.RawQuery = q.Encode()
4850
}
4951

52+
l := ctxzap.Extract(ctx)
53+
l.Info("listWithKeysetPagination", zap.Any("apiURL", apiURL.String()))
5054
headers, rateLimitDesc, err := c.doRequest(ctx, http.MethodGet, apiURL.String(), target, nil)
5155
if err != nil {
5256
return "", rateLimitDesc, err

0 commit comments

Comments
 (0)