Skip to content

Commit

Permalink
fixes #289 - issue warning log when geocoding fails
Browse files Browse the repository at this point in the history
An exception with stack trace was generated when geocoding the Resource URL domain failed. This could happen quite often and pollutes logs. This commit makes this a warning with message from Exception.
  • Loading branch information
justb4 committed Oct 10, 2019
1 parent 2e2cd2d commit 9d7d565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GeoHealthCheck/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def geocode(value, spatial_keyword_type='hostname'):
lat, lon = content['lat'], content['lon']
except Exception as err: # skip storage
msg = 'Could not derive coordinates: %s' % err
LOGGER.exception(msg)
LOGGER.warning(msg)
return lat, lon


Expand Down

0 comments on commit 9d7d565

Please sign in to comment.