From 2c7880874d98eae89eb6e6fef4a02a5597e2425f Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 22 May 2018 21:34:06 +0000 Subject: [PATCH] Logging geocode response --- platypush/plugins/google/maps.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platypush/plugins/google/maps.py b/platypush/plugins/google/maps.py index a5ca675e6..24daa4935 100644 --- a/platypush/plugins/google/maps.py +++ b/platypush/plugins/google/maps.py @@ -1,4 +1,5 @@ import json +import logging import requests from platypush.message.response import Response @@ -29,6 +30,8 @@ class GoogleMapsPlugin(GooglePlugin): if 'results' in response and response['results']: result = response['results'][0] + logging.info('Google Maps geocode response for latlng ({},{}): {}'. + format(latitude, longitude, result)) for addr_component in result['address_components']: for component_type in addr_component['types']: