Skip to content

Commit 77d1db8

Browse files
committed
log operation id for attach and detach
1 parent 41bba8a commit 77d1db8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/gce-cloud-provider/compute/gce-compute.go

+2
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,7 @@ func (cloud *CloudProvider) AttachDisk(ctx context.Context, project string, volK
621621
}
622622

623623
op, err := cloud.service.Instances.AttachDisk(project, instanceZone, instanceName, attachedDiskV1).Context(ctx).Do()
624+
klog.V(5).Infof("AttachDisk operation %v", op.Name)
624625
if err != nil {
625626
return fmt.Errorf("failed cloud service attach disk call: %v", err)
626627
}
@@ -634,6 +635,7 @@ func (cloud *CloudProvider) AttachDisk(ctx context.Context, project string, volK
634635
func (cloud *CloudProvider) DetachDisk(ctx context.Context, project, deviceName, instanceZone, instanceName string) error {
635636
klog.V(5).Infof("Detaching disk %v from %v", deviceName, instanceName)
636637
op, err := cloud.service.Instances.DetachDisk(project, instanceZone, instanceName, deviceName).Context(ctx).Do()
638+
klog.V(5).Infof("AttachDisk operation %v", op.Name)
637639
if err != nil {
638640
return err
639641
}

0 commit comments

Comments
 (0)