We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f87a47 commit 96fbc5dCopy full SHA for 96fbc5d
cmd/node-termination-handler.go
@@ -172,7 +172,7 @@ func main() {
172
if err != nil {
173
log.Log().Str("event_type", monitor.Kind()).Err(err).Msg("There was a problem monitoring for events")
174
metrics.ErrorEventsInc(monitor.Kind())
175
- if err == previousErr {
+ if previousErr != nil && err.Error() == previousErr.Error() {
176
duplicateErrCount++
177
} else {
178
duplicateErrCount = 0
0 commit comments