diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2018-06-05 19:08:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-05 19:08:46 +0100 |
commit | e316407b5d41da90ded5759d519a93656ff013ad (patch) | |
tree | 1bdf25c894a218a3622dd70de60211d52d6e0488 /synapse/http/client.py | |
parent | Merge pull request #3340 from ArchangeGabriel/patch-1 (diff) | |
parent | factor out uri redaction into a method on http (diff) | |
download | synapse-e316407b5d41da90ded5759d519a93656ff013ad.tar.xz |
Merge pull request #3327 from t3chguy/redact_as_request_token
Strip `access_token` from outgoing requests
Diffstat (limited to 'synapse/http/client.py')
-rw-r--r-- | synapse/http/client.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/http/client.py b/synapse/http/client.py index 4d4eee3d64..5820d3e96f 100644 --- a/synapse/http/client.py +++ b/synapse/http/client.py @@ -19,7 +19,7 @@ from OpenSSL.SSL import VERIFY_NONE from synapse.api.errors import ( CodeMessageException, MatrixCodeMessageException, SynapseError, Codes, ) -from synapse.http import cancelled_to_request_timed_out_error +from synapse.http import cancelled_to_request_timed_out_error, redact_uri from synapse.util.async import add_timeout_to_deferred from synapse.util.caches import CACHE_SIZE_FACTOR from synapse.util.logcontext import make_deferred_yieldable @@ -90,7 +90,8 @@ class SimpleHttpClient(object): # counters to it outgoing_requests_counter.labels(method).inc() - logger.info("Sending request %s %s", method, uri) + # log request but strip `access_token` (AS requests for example include this) + logger.info("Sending request %s %s", method, redact_uri(uri)) try: request_deferred = self.agent.request( |