0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-21 21:49:51 +01:00

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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)
}
}