From 1eaca82bbd7ab52cb10b4b1b7f8fd3f8f46a7638 Mon Sep 17 00:00:00 2001 From: Scott Miller Date: Thu, 3 Oct 2024 13:47:50 -0500 Subject: [PATCH] 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 --------- Co-authored-by: Steven Clark --- changelog/28564.txt | 3 +++ vault/seal_autoseal.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelog/28564.txt diff --git a/changelog/28564.txt b/changelog/28564.txt new file mode 100644 index 0000000000..22e6b74198 --- /dev/null +++ b/changelog/28564.txt @@ -0,0 +1,3 @@ +```release-note:improvement +core: log at level ERROR rather than INFO when all seals are unhealthy. +``` diff --git a/vault/seal_autoseal.go b/vault/seal_autoseal.go index fa953045ea..6d295a2905 100644 --- a/vault/seal_autoseal.go +++ b/vault/seal_autoseal.go @@ -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)