From bfd8ebfc157f09006015a3803c31b42cf3040c6b Mon Sep 17 00:00:00 2001 From: halimsam Date: Wed, 30 Apr 2025 18:28:38 +0000 Subject: [PATCH] remove no-op Watcher logs for GKE Data Cache in 1.17 release branch --- pkg/gce-pd-csi-driver/cache.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/gce-pd-csi-driver/cache.go b/pkg/gce-pd-csi-driver/cache.go index e1b1cb1fe..a9ff98edf 100644 --- a/pkg/gce-pd-csi-driver/cache.go +++ b/pkg/gce-pd-csi-driver/cache.go @@ -491,7 +491,6 @@ func createVg(volumeGroupName string, raidedLocalSsds string) error { func reduceVolumeGroup(volumeGroupName string, force bool) { if !checkVgExists(volumeGroupName) { - klog.V(2).Infof("Volume group %v not found, no further action needed", volumeGroupName) return } args := []string{ @@ -646,7 +645,7 @@ func watchDiskDetaches(watcher *fsnotify.Watcher, nodeName string, errorCh chan case err := <-watcher.Errors: errorCh <- fmt.Errorf("disk update event errored: %v", err) // watch for events - case event := <-watcher.Events: + case <-watcher.Events: // In case of an event i.e. creation or deletion of any new PV, we update the VG metadata. // This might include some non-LVM changes, no harm in updating metadata multiple times. args := []string{ @@ -658,7 +657,6 @@ func watchDiskDetaches(watcher *fsnotify.Watcher, nodeName string, errorCh chan klog.Errorf("Error updating volume group's metadata: %v", err) } reduceVolumeGroup(getVolumeGroupName(nodeName), true) - klog.V(6).Infof("disk attach/detach event %#v\n", event) } } }