mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 09:42:25 +00:00
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:
3
changelog/28564.txt
Normal file
3
changelog/28564.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:improvement
|
||||
core: log at level ERROR rather than INFO when all seals are unhealthy.
|
||||
```
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user