mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 14:20:19 +00:00
cephfs: replace Errorf with ErrorLog in getSnapshotInfo
replace Errorf with ErrorLog in getSnapshotInfo for context based logging. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
7e8cc41aca
commit
72dfe6a265
@ -131,7 +131,7 @@ func getSnapshotInfo(ctx context.Context, volOptions *volumeOptions, cr *util.Cr
|
||||
if strings.Contains(err.Error(), ErrSnapNotFound.Error()) {
|
||||
return snapshotInfo{}, err
|
||||
}
|
||||
klog.Errorf(util.Log(ctx, "failed to get subvolume snapshot info %s %s(%s) in fs %s"), string(snapID), string(volID), err, volOptions.FsName)
|
||||
util.ErrorLog(ctx, "failed to get subvolume snapshot info %s %s(%s) in fs %s", string(snapID), string(volID), err, volOptions.FsName)
|
||||
return snapshotInfo{}, err
|
||||
}
|
||||
return snap, nil
|
||||
|
Loading…
Reference in New Issue
Block a user