mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05: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:
parent
e8a432c4f8
commit
1eaca82bbd
2 changed files with 4 additions and 1 deletions
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue