From e8481a9dc3649bef565903763712366eca72c27e Mon Sep 17 00:00:00 2001 From: Anurag Mittal Date: Wed, 18 Dec 2024 12:34:00 +0100 Subject: [PATCH] COSI-35: add-request-to-trace-logs --- pkg/driver/provisioner_server_impl.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/driver/provisioner_server_impl.go b/pkg/driver/provisioner_server_impl.go index 8ab28bb6..1b8f0ed9 100644 --- a/pkg/driver/provisioner_server_impl.go +++ b/pkg/driver/provisioner_server_impl.go @@ -106,6 +106,7 @@ func InitProvisionerServer(provisioner string) (cosiapi.ProvisionerServer, error // non-nil err - Internal error [requeue'd with exponential backoff] func (s *ProvisionerServer) DriverCreateBucket(ctx context.Context, req *cosiapi.DriverCreateBucketRequest) (*cosiapi.DriverCreateBucketResponse, error) { + klog.V(c.LvlTrace).InfoS("DriverCreateBucket request received", "request", req) bucketName := req.GetName() parameters := req.GetParameters() service := "S3" @@ -159,6 +160,7 @@ func (s *ProvisionerServer) DriverCreateBucket(ctx context.Context, // non-nil err - Internal error [requeue'd with exponential backoff] func (s *ProvisionerServer) DriverDeleteBucket(ctx context.Context, req *cosiapi.DriverDeleteBucketRequest) (*cosiapi.DriverDeleteBucketResponse, error) { + klog.V(c.LvlTrace).InfoS("DriverDeleteBucket request received", "request", req) bucketName := req.GetBucketId() @@ -201,6 +203,8 @@ func (s *ProvisionerServer) DriverDeleteBucket(ctx context.Context, // non-nil err - Internal error [requeue'd with exponential backoff] func (s *ProvisionerServer) DriverGrantBucketAccess(ctx context.Context, req *cosiapi.DriverGrantBucketAccessRequest) (*cosiapi.DriverGrantBucketAccessResponse, error) { + klog.V(c.LvlTrace).InfoS("DriverGrantBucketAccess request received", "request", req) + bucketName := req.GetBucketId() userName := req.GetName() parameters := req.GetParameters() @@ -253,6 +257,7 @@ func (s *ProvisionerServer) DriverGrantBucketAccess(ctx context.Context, // non-nil err - Internal error [requeue'd with exponential backoff] func (s *ProvisionerServer) DriverRevokeBucketAccess(ctx context.Context, req *cosiapi.DriverRevokeBucketAccessRequest) (*cosiapi.DriverRevokeBucketAccessResponse, error) { + klog.V(c.LvlTrace).InfoS("DriverRevokeBucketAccess request received", "request", req) bucketName := req.GetBucketId() userName := req.GetAccountId()