Skip to content

Commit

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

[release-1.30] fix: print error logs in NodeGetVolumeStats
  • Loading branch information
andyzhangx authored Apr 12, 2024
2 parents 11b3061 + 173ea3f commit 4950731
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/azuredisk/nodeserver.go
Original file line number Diff line number Diff line change
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 4950731

Please sign in to comment.