[ResponseOps][alerting] remove debug log causing null dereference on alert::getUuid() (#189572)

resolves https://github.com/elastic/kibana/issues/189551

See the reference issue for more details.

We just remove the else clause that is logging the error, as it's both
very unlikely we'd ever see it since it's debug level, but we also don't
think it's needed from the recent work done in this module.
This commit is contained in:
Patrick Mueller 2024-07-30 20:17:13 -04:00 committed by GitHub
parent 7b38be0766
commit 86bd347e13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -518,13 +518,6 @@ export class AlertsClient<
rule: this.rule,
})
);
} else {
this.options.logger.debug(
() =>
`Could not find alert document to update for recovered alert with id ${id} and uuid ${currentRecoveredAlerts[
id
].getUuid()}`
);
}
}