diff options
| author | Paul Buetow <paul@buetow.org> | 2024-08-22 11:18:17 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-08-22 11:18:17 +0300 |
| commit | 16dee0a35bfcd9a9053241a1d52b5f9bc45c6112 (patch) | |
| tree | ebbea176653c095adcb3a0b5af4034cff1514950 /internal | |
| parent | 97c9760b33888972b0488775b62bee6b6a9fa57e (diff) | |
foo
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/server/health/health.go | 6 |
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, } } |
