Skip to content

Commit b63b27e

Browse files
authored
Merge pull request #2068 from halimsam/remover-watcher-log
Remove GKE Data Cache Watcher regular event logs
2 parents 6d8d59a + 08c8fcc commit b63b27e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/gce-pd-csi-driver/cache.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ func watchDiskDetaches(watcher *fsnotify.Watcher, nodeName string, errorCh chan
646646
case err := <-watcher.Errors:
647647
errorCh <- fmt.Errorf("disk update event errored: %v", err)
648648
// watch for events
649-
case event := <-watcher.Events:
649+
case <-watcher.Events:
650650
// In case of an event i.e. creation or deletion of any new PV, we update the VG metadata.
651651
// This might include some non-LVM changes, no harm in updating metadata multiple times.
652652
args := []string{
@@ -658,7 +658,6 @@ func watchDiskDetaches(watcher *fsnotify.Watcher, nodeName string, errorCh chan
658658
klog.Errorf("Error updating volume group's metadata: %v", err)
659659
}
660660
reduceVolumeGroup(getVolumeGroupName(nodeName), true)
661-
klog.V(6).Infof("disk attach/detach event %#v\n", event)
662661
}
663662
}
664663
}

0 commit comments

Comments
 (0)