Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert print statement to info log #455

Merged
merged 1 commit into from
Nov 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion googlemaps/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

import base64
import collections
import logging
from datetime import datetime
from datetime import timedelta
import functools
Expand All @@ -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"
Expand Down Expand Up @@ -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")
Expand Down