Skip to content

Commit

Permalink
Merge pull request #2280 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…2279-to-release-1.29

[release-1.29] fix: print error logs in NodeGetVolumeStats
  • Loading branch information
andyzhangx committed Apr 12, 2024
2 parents baf5fc8 + c903f34 commit 491a826
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/azuredisk/nodeserver.go
Expand Up @@ -445,6 +445,9 @@ func (d *Driver) NodeGetVolumeStats(ctx context.Context, req *csi.NodeGetVolumeS
}

volUsage, err := d.GetVolumeStats(ctx, d.mounter, req.VolumeId, req.VolumePath, d.hostUtil)
if err != nil {
klog.Errorf("NodeGetVolumeStats: failed to get volume stats for volume %s path %s: %v", req.VolumeId, req.VolumePath, err)
}
return &csi.NodeGetVolumeStatsResponse{
Usage: volUsage,
}, err
Expand Down

0 comments on commit 491a826

Please sign in to comment.