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:
parent
f19e5a9643
commit
a46a8e1a27
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user