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