diff --git a/googlemaps/client.py b/googlemaps/client.py index 54838fa0..6684ed1e 100644 --- a/googlemaps/client.py +++ b/googlemaps/client.py @@ -22,6 +22,7 @@ import base64 import collections +import logging from datetime import datetime from datetime import timedelta import functools @@ -41,6 +42,8 @@ except ImportError: # Python 2 from urllib import urlencode +logger = logging.getLogger(__name__) + _X_GOOG_MAPS_EXPERIENCE_ID = "X-Goog-Maps-Experience-ID" _USER_AGENT = "GoogleGeoApiClientPython/%s" % googlemaps.__version__ _DEFAULT_BASE_URL = "https://maps.googleapis.com" @@ -189,7 +192,7 @@ def __init__(self, key=None, client_id=None, client_secret=None, self.queries_quota = math.floor(self.queries_per_minute/60) else: sys.exit("MISSING VALID NUMBER for queries_per_second or queries_per_minute") - print("\n","API queries_quota:", self.queries_quota,"\n") + logger.info("API queries_quota:", self.queries_quota) except NameError: sys.exit("MISSING VALUE for queries_per_second or queries_per_minute")