Skip to content
Permalink
Browse files
fix: downgrade repetitive logging calls to debug (#885)
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 #781

Authored-by: Brad Solomon <solomonbj@america.gov>
  • Loading branch information
busunkim96 committed Apr 28, 2020
1 parent bd58139 commit 3bf2781e29cb828409f3a8a21939323286524569
Showing with 4 additions and 4 deletions.
  1. +4 鈭4 googleapiclient/discovery.py
@@ -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)

@@ -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,
@@ -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

0 comments on commit 3bf2781

Please sign in to comment.