summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,
}
}