Skip to content

Commit c8f53c8

Browse files
committed
validate connector logs after sdk update
1 parent 527badc commit c8f53c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/connector/project.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
ent "github.com/conductorone/baton-sdk/pkg/types/entitlement"
1313
grant "github.com/conductorone/baton-sdk/pkg/types/grant"
1414
rs "github.com/conductorone/baton-sdk/pkg/types/resource"
15+
"github.com/grpc-ecosystem/go-grpc-middleware/logging/zap/ctxzap"
1516
)
1617

1718
const (
@@ -52,6 +53,8 @@ func projectResource(project *linear.Project, parentId *v2.ResourceId) (*v2.Reso
5253
}
5354

5455
func (o *projectResourceType) List(ctx context.Context, parentId *v2.ResourceId, token *pagination.Token) ([]*v2.Resource, string, annotations.Annotations, error) {
56+
l := ctxzap.Extract(ctx)
57+
l.Info("*************** List projects")
5558
var annotations annotations.Annotations
5659
bag, err := parsePageToken(token.Token, &v2.ResourceId{ResourceType: resourceTypeProject.Id})
5760
if err != nil {

0 commit comments

Comments
 (0)