mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix memory leak in HTTP client
Credit to Damien Vandenbossche and Thomas Lemarchand @tlemarchand for discovery and fix.
This commit is contained in:
parent
dfe6dfe963
commit
c46bf85518
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue