endpoing: better log message for v1 replication cursors

This commit is contained in:
Christian Schwarz 2020-04-06 12:51:06 +02:00
parent f5f94219fd
commit 515ddb8307

View File

@ -7,7 +7,6 @@ import (
"regexp" "regexp"
"sort" "sort"
"github.com/kr/pretty"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/zrepl/zrepl/util/errorarray" "github.com/zrepl/zrepl/util/errorarray"
@ -107,7 +106,7 @@ func GetReplicationCursors(ctx context.Context, dp *zfs.DatasetPath, jobID JobID
} }
if len(v1) > 0 { if len(v1) > 0 {
getLogger(ctx).WithField("bookmark", pretty.Sprint(v1)). getLogger(ctx).WithField("bookmark", v1).
Warn("found v1-replication cursor bookmarks, consider running migration 'replication-cursor:v1-v2' after successful replication with this zrepl version") Warn("found v1-replication cursor bookmarks, consider running migration 'replication-cursor:v1-v2' after successful replication with this zrepl version")
} }