chore(livestream): Ignore invalid IP address errors (#23118)

This commit is contained in:
Michael Matloka
2024-06-20 15:30:53 +02:00
committed by GitHub
parent f19e5a9643
commit a46a8e1a27

View File

@@ -116,7 +116,7 @@ func (c *KafkaConsumer) Consume() {
if ipStr != "" {
phEvent.Lat, phEvent.Lng, err = c.geolocator.Lookup(ipStr)
if err != nil {
if err != nil && err.Error() != "invalid IP address" { // An invalid IP address is not an error on our side
sentry.CaptureException(err)
}
}