summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-08-22 11:18:17 +0300
committerPaul Buetow <paul@buetow.org>2024-08-22 11:18:17 +0300
commit16dee0a35bfcd9a9053241a1d52b5f9bc45c6112 (patch)
treeebbea176653c095adcb3a0b5af4034cff1514950
parent97c9760b33888972b0488775b62bee6b6a9fa57e (diff)
foo
-rw-r--r--internal/server/health/health.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/server/health/health.go b/internal/server/health/health.go
index 261167e..5144416 100644
--- a/internal/server/health/health.go
+++ b/internal/server/health/health.go
@@ -56,11 +56,11 @@ func (hs Status) Set(s Severity, healthStatusKey string, info any) {
hs.mu.Lock()
defer hs.mu.Unlock()
- text := fmt.Sprintf("%v", info)
- log.Printf("status: alerting %s as %s: %v", healthStatusKey, s, info)
+ infoStr := fmt.Sprintf("%v", info)
+ log.Printf("status: alerting %s as %s: %s", healthStatusKey, s, infoStr)
hs.alerts[healthStatusKey] = alert{
- text: text,
+ text: infoStr,
severity: s,
}
}