Merge "Corrects 2nd argument type for logging"

This commit is contained in:
Jenkins 2013-02-13 02:03:55 +00:00 committed by Gerrit Code Review
commit 67b3db2bbc
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class HTTPClient(object):
ch = logging.StreamHandler()
self._logger.setLevel(logging.DEBUG)
self._logger.addHandler(ch)
if hasattr(requests, logging):
if hasattr(requests, 'logging'):
requests.logging.getLogger(requests.__name__).addHandler(ch)
def use_token_cache(self, use_it):