Skip to content
New issue

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

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

Already on GitHub? # to your account

Fixes Issue #781: Replace repetitive logger.info() calls w/ logger.debug() #782

Closed
wants to merge 1 commit into from
Closed
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
12 changes: 6 additions & 6 deletions googleapiclient/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ def fix_method_name(name):
name: string, method name.

Returns:
The name with '_' appended if the name is a reserved word and '$'
replaced with '_'.
The name with '_' appended if the name is a reserved word and '$'
replaced with '_'.
"""
name = name.replace("$", "_")
if keyword.iskeyword(name) or name in RESERVED_WORDS:
Expand Down Expand Up @@ -272,7 +272,7 @@ def _retrieve_discovery_doc(url, http, cache_discovery, cache=None, developerKey
actual_url = _add_query_parameter(url, "userIp", os.environ["REMOTE_ADDR"])
if developerKey:
actual_url = _add_query_parameter(url, "key", developerKey)
logger.info("URL being requested: GET %s", actual_url)
logger.debug("URL being requested: GET %s", actual_url)

resp, content = http.request(actual_url)

Expand Down Expand Up @@ -891,7 +891,7 @@ def method(self, **kwargs):
) % multipart_boundary
url = _add_query_parameter(url, "uploadType", "multipart")

logger.info("URL being requested: %s %s" % (httpMethod, url))
logger.debug("URL being requested: %s %s" % (httpMethod, url))
return self._requestBuilder(
self._http,
model.response,
Expand Down Expand Up @@ -1011,14 +1011,14 @@ def methodNext(self, previous_request, previous_response):
request.uri = _add_query_parameter(
request.uri, pageTokenName, nextPageToken
)
logger.info("Next page request URL: %s %s" % (methodName, request.uri))
logger.debug("Next page request URL: %s %s" % (methodName, request.uri))
else:
# Replace pageToken value in request body
model = self._model
body = model.deserialize(request.body)
body[pageTokenName] = nextPageToken
request.body = model.serialize(body)
logger.info("Next page request body: %s %s" % (methodName, body))
logger.debug("Next page request body: %s %s" % (methodName, body))

return request

Expand Down