hasHandlers is only valid since python 3.2

This commit is contained in:
Honza Král
2016-04-27 17:37:35 +02:00
parent 6722bbff63
commit b83df5e832
+1 -1
View File
@@ -65,7 +65,7 @@ class Connection(object):
logger.debug('> %s', body)
logger.debug('< %s', response)
if tracer.isEnabledFor(logging.INFO) and tracer.hasHandlers():
if tracer.isEnabledFor(logging.INFO) and tracer.handlers:
# include pretty in trace curls
path = path.replace('?', '?pretty&', 1) if '?' in path else path + '?pretty'
if self.url_prefix: