1
0

backport of commit dd1d0f31a2988006c8d31295440ac489ebb9b575 (#25225)

Co-authored-by: Scott Miller <smiller@hashicorp.com>
This commit is contained in:
hc-github-team-secure-vault-core 2024-02-06 10:01:27 -07:00 committed by GitHub
parent 4cd7559c81
commit 83435c3106
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3467,6 +3467,8 @@ func (c *Core) checkBarrierAutoRotate(ctx context.Context) {
lf := c.logger.Error
if strings.HasSuffix(err.Error(), "context canceled") {
lf = c.logger.Debug
} else if strings.HasSuffix(err.Error(), "context deadline exceeded") {
lf = c.logger.Warn
}
lf("error in barrier auto rotation", "error", err)
return