Skip to content

Commit

Permalink
feat: downgrade repetitive logging calls to debug
Browse files Browse the repository at this point in the history
The current INFO calls, which are highly repetitive, don't meet
the typical 'severity level' of an INFO message, and are more suited
for DEBUG.

Refs Issue googleapis#781
  • Loading branch information
bsolomon1124 authored and busunkim96 committed Apr 24, 2020
1 parent 45cace8 commit 3b7f478
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions googleapiclient/discovery.py
Expand Up @@ -277,7 +277,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 @@ -908,7 +908,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 @@ -1028,14 +1028,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

0 comments on commit 3b7f478

Please sign in to comment.