From 19328c8f2e29d7683da75414af2cf30abd13f6bf Mon Sep 17 00:00:00 2001 From: Michael Gaffney Date: Wed, 16 Oct 2019 14:00:00 -0400 Subject: [PATCH] core: Log if an error is returned from postSealMigration (#7675) --- vault/core.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vault/core.go b/vault/core.go index 527a766cb9..26fea55aaa 100644 --- a/vault/core.go +++ b/vault/core.go @@ -1743,7 +1743,9 @@ func (c *Core) postUnseal(ctx context.Context, ctxCancelFunc context.CancelFunc, if atomic.LoadUint32(c.sealMigrated) == 1 { defer func() { atomic.StoreUint32(c.sealMigrated, 0) }() - c.postSealMigration(ctx) + if err := c.postSealMigration(ctx); err != nil { + c.logger.Warn("post-unseal post seal migration failed", "error", err) + } } c.logger.Info("post-unseal setup complete")