From 1434a8a301d1ea2078d0f5880c98fdcd15f7f232 Mon Sep 17 00:00:00 2001 From: Grant Griffiths Date: Wed, 6 Dec 2023 20:45:56 +0000 Subject: [PATCH] PWX-35292: Reduce log level for chatty log Volume was deleted Signed-off-by: Grant Griffiths --- csi/node.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/csi/node.go b/csi/node.go index 5c056d3cc..cd8c4a1b7 100644 --- a/csi/node.go +++ b/csi/node.go @@ -73,7 +73,6 @@ func (s *OsdCsiServer) NodeGetInfo( // target path on the node. // // TODO: Support READ ONLY Mounts -// func (s *OsdCsiServer) NodePublishVolume( ctx context.Context, req *csi.NodePublishVolumeRequest, @@ -236,14 +235,14 @@ func (s *OsdCsiServer) NodeUnpublishVolume( vols, err := s.driver.Enumerate(&api.VolumeLocator{VolumeIds: []string{req.GetVolumeId()}}, nil) if err != nil || len(vols) < 1 { if err == kvdb.ErrNotFound { - clogger.WithContext(ctx).Infof("Volume %s was deleted or cannot be found: %s", req.GetVolumeId(), err.Error()) + clogger.WithContext(ctx).Tracef("Volume %s was deleted or cannot be found: %s", req.GetVolumeId(), err.Error()) return &csi.NodeUnpublishVolumeResponse{}, nil } else if err != nil { return nil, status.Errorf(codes.NotFound, "Volume id %s not found: %s", req.GetVolumeId(), err.Error()) } else { - clogger.WithContext(ctx).Infof("Volume %s was deleted or cannot be found", req.GetVolumeId()) + clogger.WithContext(ctx).Tracef("Volume %s was deleted or cannot be found", req.GetVolumeId()) return &csi.NodeUnpublishVolumeResponse{}, nil } }