Skip to content

Commit

Permalink
Merge pull request #2752 from andyzhangx/refine-resizevolume-error-log
Browse files Browse the repository at this point in the history
cleanup: refine resizevolume error log on Windows
  • Loading branch information
andyzhangx authored Dec 22, 2024
2 parents aba48b0 + ee819d0 commit d46df04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/os/volume/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func ResizeVolume(volumeID string, size int64) error {

// only resize if finalSize - currentSize is greater than 100MB
if finalSize-currentSize < 100*1024*1024 {
klog.V(2).Infof("Attempted to resize volume %s to a lower size, from currentBytes=%d wantedBytes=%d", volumeID, currentSize, finalSize)
klog.V(2).Infof("minimum resize difference(1GB) not met, skipping resize. volumeID=%s currentSize=%d finalSize=%d", volumeID, currentSize, finalSize)
return nil
}

Expand Down

0 comments on commit d46df04

Please sign in to comment.