web: More debug output

This commit is contained in:
Teemu Ikonen
2023-05-26 16:24:33 +03:00
parent 8c844486e4
commit 05b18b3402

View File

@@ -24,6 +24,7 @@ class WebLocator(LocatorBase):
geolocate_v1_valid_response_schema)
self.response_error_validate = fastjsonschema.compile(
geolocate_v1_error_schema)
log.debug(f"Using locateurl {locateurl}")
async def locate(self, observation, **kwargs):
jd = observation.copy()
@@ -68,7 +69,9 @@ class WebLocator(LocatorBase):
loc = located.get('location', {})
latlon = loc.get('lat'), loc.get('lng')
return latlon, located.get('accuracy')
accuracy = located.get('accuracy')
log.debug(f"Got result: {latlon}, {accuracy}")
return latlon, accuracy
async def query(observations, locateurl, apikey):