Skip to content

Commit

Permalink
Merge pull request #2279 from andyzhangx/print-NodeGetVolumeStats-err…
Browse files Browse the repository at this point in the history
…or-log

fix: print error logs in NodeGetVolumeStats
  • Loading branch information
andyzhangx authored Apr 12, 2024
2 parents 09cc30c + 6952d1e commit c0ec57b
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 c0ec57b

Please sign in to comment.