Skip to content

Commit

Permalink
Merge pull request #74 from asgillmor/turn_down_request_logging
Browse files Browse the repository at this point in the history
turn request logging to debug instead of info
  • Loading branch information
Ben Picolo committed Dec 11, 2014
2 parents 62f52cb + 98619bb commit 2044baa
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
0.7.3 (2014-12-11)
------------------
- request logging is now done on the debug level instead of
info level.

0.7.0 (2014-11-26)
------------------
- headers are no longer cached and required as part of async and
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name="swaggerpy",
version="0.7.2",
version="0.7.3",
license="BSD 3-Clause License",
description="Library for accessing Swagger-enabled API's",
long_description=open(os.path.join(os.path.dirname(__file__),
Expand Down
6 changes: 4 additions & 2 deletions swaggerpy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,10 @@ def _construct_request(self, **kwargs):
return request

def __call__(self, **kwargs):
log.info(u"%s?%r" % (self._json[u'nickname'],
urllib.urlencode(kwargs)))
log.debug(u"%s?%r" % (
self._json[u'nickname'],
urllib.urlencode(kwargs)
))
request = self._construct_request(**kwargs)

def py_model_convert_callback(response, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion swaggerpy/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def wait(self, timeout, request):
:return: Requests response
:rtype: requests.Response
"""
log.info(u"%s %s(%r)", request.method, request.url, request.params)
log.debug(u"%s %s(%r)", request.method, request.url, request.params)
return self.session.send(
self.session.prepare_request(request),
timeout=timeout,
Expand Down

0 comments on commit 2044baa

Please sign in to comment.