Skip to content

Commit

Permalink
COSI-35: add-request-to-trace-logs
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag4DSB committed Dec 18, 2024
1 parent d8a7b3f commit 535757d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/driver/provisioner_server_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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()

Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 535757d

Please sign in to comment.