Skip to content

Commit

Permalink
feat(server/coordinator): ignore empty geo data
Browse files Browse the repository at this point in the history
  • Loading branch information
Savid committed Jul 28, 2023
1 parent e6a144b commit e2f29bf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/server/service/coordinator/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ func (c *Client) CreateNodeRecords(ctx context.Context, req *xatu.CreateNodeReco
}

if geoipLookupResult != nil && !(geoipLookupResult.Longitude == 0 && geoipLookupResult.Latitude == 0) {
c.log.WithField("ip", *ipAddress).WithField("geoip", geoipLookupResult).Warn("geoip lookup result")
pRecord.GeoCity = &geoipLookupResult.CityName
pRecord.GeoCountry = &geoipLookupResult.CountryName
pRecord.GeoCountryCode = &geoipLookupResult.CountryCode
Expand Down

0 comments on commit e2f29bf

Please sign in to comment.