rbd: fix image details logging

log only the required details of
the image.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2021-05-03 17:26:04 +05:30 committed by mergify[bot]
parent fa36a46682
commit 0ce6ad1152

View File

@ -726,7 +726,7 @@ func (rv *rbdVolume) checkImageChainHasFeature(ctx context.Context, feature uint
if errors.Is(err, ErrImageNotFound) {
return false, nil
}
util.ErrorLog(ctx, "failed to get image info for %s: %s", vol, err)
util.ErrorLog(ctx, "failed to get image info for %s: %s", vol.String(), err)
return false, err
}
if f := vol.hasFeature(feature); f {