core: Log if an error is returned from postSealMigration (#7675)

This commit is contained in:
Michael Gaffney 2019-10-16 14:00:00 -04:00 committed by GitHub
parent 40a55e7d22
commit 4f7bd872ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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")