diff --git a/pkg/cluster/storage.go b/pkg/cluster/storage.go index 0f907f0885..16fcb39fcd 100644 --- a/pkg/cluster/storage.go +++ b/pkg/cluster/storage.go @@ -216,7 +216,7 @@ func doMigrateToken(ctx context.Context, storageClient client.Client, keyValue c // saving the new encrypted data with the right token key if err := storageClient.Create(ctx, newTokenKey, encryptedData); err != nil { if err.Error() == "key exists" { - logrus.Warnln("bootstrap key exists") + logrus.Warn("bootstrap key exists") } else if strings.Contains(err.Error(), "not supported for learner") { logrus.Debug("skipping bootstrap data save on learner") return nil