There was an error while loading. Please reload this page.
1 parent 6e94bf7 commit cc14efdCopy full SHA for cc14efd
elasticsearch/connection/base.py
@@ -65,7 +65,7 @@ def _pretty_json(data):
65
logger.debug('> %s', body)
66
logger.debug('< %s', response)
67
68
- if tracer.isEnabledFor(logging.INFO):
+ if tracer.isEnabledFor(logging.INFO) and tracer.hasHandlers():
69
# include pretty in trace curls
70
path = path.replace('?', '?pretty&', 1) if '?' in path else path + '?pretty'
71
if self.url_prefix:
0 commit comments