From e2f29bf236f3fc796eadcb2e710ed01f734c49bc Mon Sep 17 00:00:00 2001 From: Andrew Davis <1709934+Savid@users.noreply.github.com> Date: Fri, 28 Jul 2023 18:22:50 +1000 Subject: [PATCH] feat(server/coordinator): ignore empty geo data --- pkg/server/service/coordinator/client.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/server/service/coordinator/client.go b/pkg/server/service/coordinator/client.go index f2bdab6e..059bfb6f 100644 --- a/pkg/server/service/coordinator/client.go +++ b/pkg/server/service/coordinator/client.go @@ -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