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:
Madhu Rajanna 2020-10-29 15:19:24 +05:30 committed by mergify[bot]
parent b3120926b9
commit 6091490393

View File

@ -419,7 +419,7 @@ func (rv *rbdVolume) getCloneDepth(ctx context.Context) (uint, error) {
if errors.Is(err, ErrImageNotFound) {
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
}
if vol.ParentName != "" {