Skip to content

Commit

Permalink
chore: print error logs in NodeGetVolumeStats
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Apr 11, 2024
1 parent b84caea commit 6952d1e
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 6952d1e

Please sign in to comment.