Log when the seal is unavailable as error (#28564)

* Log when the seal is unavailable as error

* changelog

* Update changelog/28564.txt

Co-authored-by: Steven Clark <steven.clark@hashicorp.com>

---------

Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
This commit is contained in:
Scott Miller 2024-10-03 13:47:50 -05:00 committed by GitHub
parent e8a432c4f8
commit 1eaca82bbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

3
changelog/28564.txt Normal file
View file

@ -0,0 +1,3 @@
```release-note:improvement
core: log at level ERROR rather than INFO when all seals are unhealthy.
```

View file

@ -517,7 +517,7 @@ error and restart Vault.`)
d.core.MetricSink().SetGauge(autoSealUnavailableDuration, 0)
} else {
if lastTestOk && allUnhealthy {
d.logger.Info("seal backend is completely unhealthy (all seal wrappers all unhealthy)", "downtime", now.Sub(lastSeenOk).String())
d.logger.Error("seal backend is completely unhealthy (all seal wrappers all unhealthy)", "downtime", now.Sub(lastSeenOk).String())
}
lastTestOk = false
healthCheck.Reset(seal.HealthTestIntervalUnhealthy)