mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 22:30:23 +00:00
rbd: improve logging in getCloneDepth
earlier if the depth check fails the complete vol struct was getting logged, this commits logs only the pool and image name. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
b3120926b9
commit
6091490393
@ -419,7 +419,7 @@ func (rv *rbdVolume) getCloneDepth(ctx context.Context) (uint, error) {
|
|||||||
if errors.Is(err, ErrImageNotFound) {
|
if errors.Is(err, ErrImageNotFound) {
|
||||||
return depth, nil
|
return depth, nil
|
||||||
}
|
}
|
||||||
util.ErrorLog(ctx, "failed to check depth on image %s: %s", vol, err)
|
util.ErrorLog(ctx, "failed to check depth on image %s: %s", vol.String(), err)
|
||||||
return depth, err
|
return depth, err
|
||||||
}
|
}
|
||||||
if vol.ParentName != "" {
|
if vol.ParentName != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user