diff --git a/internal/cephfs/snapshot.go b/internal/cephfs/snapshot.go index b1d3e3b25..a5284463f 100644 --- a/internal/cephfs/snapshot.go +++ b/internal/cephfs/snapshot.go @@ -195,7 +195,7 @@ func unprotectSnapshot(ctx context.Context, volOptions *volumeOptions, cr *util. if strings.Contains(err.Error(), ErrSnapProtectionExist.Error()) { return nil } - klog.Errorf(util.Log(ctx, "failed to unprotect subvolume snapshot %s %s(%s) in fs %s"), string(snapID), string(volID), err, volOptions.FsName) + util.ErrorLog(ctx, "failed to unprotect subvolume snapshot %s %s(%s) in fs %s", string(snapID), string(volID), err, volOptions.FsName) return err } return nil