We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51286f5 commit 3ac200dCopy full SHA for 3ac200d
comp/healthplatform/impl/health-platform.go
@@ -223,8 +223,14 @@ func (h *healthPlatformImpl) ClearIssuesForCheck(checkID string) {
223
h.issuesMux.Lock()
224
defer h.issuesMux.Unlock()
225
226
- delete(h.issues, checkID)
227
- h.log.Info("Cleared issue for check: " + checkID)
+ // Only log if there was actually an issue to clear
+ if _, existed := h.issues[checkID]; existed {
228
+ delete(h.issues, checkID)
229
+ h.log.Info("Cleared issue for check: " + checkID)
230
+ } else {
231
+ // No issue existed, just ensure it's not in the map (idempotent)
232
233
+ }
234
}
235
236
// ClearAllIssues clears all issues (useful for testing or when all issues are resolved)
0 commit comments