summary refs log tree commit diff
path: root/synapse/http
diff options
context:
space:
mode:
authorMichael Telatynski <7t3chguy@gmail.com>2018-06-06 10:25:48 +0100
committerMichael Telatynski <7t3chguy@gmail.com>2018-06-06 10:25:48 +0100
commit330432031bd9d1a8f8788ebdcd07514e85daf2c1 (patch)
treed166285feab1f98a59fd97f7e10c55d730e39e71 /synapse/http
parentfactor out uri redaction into a method on http (diff)
downloadsynapse-330432031bd9d1a8f8788ebdcd07514e85daf2c1.tar.xz
redact_uri in two missed log paths
Diffstat (limited to 'synapse/http')
-rw-r--r--synapse/http/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/http/client.py b/synapse/http/client.py
index 5820d3e96f..8064a84c5c 100644
--- a/synapse/http/client.py
+++ b/synapse/http/client.py
@@ -106,14 +106,14 @@ class SimpleHttpClient(object):
             incoming_responses_counter.labels(method, response.code).inc()
             logger.info(
                 "Received response to  %s %s: %s",
-                method, uri, response.code
+                method, redact_uri(uri), response.code
             )
             defer.returnValue(response)
         except Exception as e:
             incoming_responses_counter.labels(method, "ERR").inc()
             logger.info(
                 "Error sending request to  %s %s: %s %s",
-                method, uri, type(e).__name__, e.message
+                method, redact_uri(uri), type(e).__name__, e.message
             )
             raise e