Merge pull request #38844 from cachedout/http_memory_leak

Fix memory leak in HTTP client
This commit is contained in:
Mike Place 2017-01-20 13:59:13 -07:00 committed by GitHub
commit ac8008d843

View file

@ -192,7 +192,7 @@ def query(url,
log_url = sanitize_url(url_full, hide_fields)
log.debug('Requesting URL {0} using {1} method'.format(log_url, method))
if method == 'POST':
if method == 'POST' and log.isEnabledFor(logging.TRACE):
# Make sure no secret fields show up in logs
if isinstance(data, dict):
log_data = data.copy()