Skip to content

Commit

Permalink
Merge pull request #7 from ericgj/add-logging-http-method
Browse files Browse the repository at this point in the history
add http method to logging (discovery.py)
  • Loading branch information
craigcitro committed May 19, 2014
2 parents 4cc527f + 87553e4 commit 56557e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions googleapiclient/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def build(serviceName,
if 'REMOTE_ADDR' in os.environ:
requested_url = _add_query_parameter(requested_url, 'userIp',
os.environ['REMOTE_ADDR'])
logger.info('URL being requested: %s' % requested_url)
logger.info('URL being requested: GET %s' % requested_url)

resp, content = http.request(requested_url)

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

logger.info('URL being requested: %s' % url)
logger.info('URL being requested: %s %s' % (httpMethod,url))
return self._requestBuilder(self._http,
model.response,
url,
Expand Down Expand Up @@ -814,7 +814,7 @@ def methodNext(self, previous_request, previous_response):

request.uri = uri

logger.info('URL being requested: %s' % uri)
logger.info('URL being requested: %s %s' % (methodName,uri))

return request

Expand Down

0 comments on commit 56557e2

Please sign in to comment.