diff --git a/internal/cephfs/snapshot.go b/internal/cephfs/snapshot.go index 4e0607bf6..b1d3e3b25 100644 --- a/internal/cephfs/snapshot.go +++ b/internal/cephfs/snapshot.go @@ -162,7 +162,7 @@ func protectSnapshot(ctx context.Context, volOptions *volumeOptions, cr *util.Cr if strings.Contains(err.Error(), ErrSnapProtectionExist.Error()) { 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 nil