diff --git a/pkg/azuredisk/nodeserver.go b/pkg/azuredisk/nodeserver.go index 48c4c1c878..57a8410281 100644 --- a/pkg/azuredisk/nodeserver.go +++ b/pkg/azuredisk/nodeserver.go @@ -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