diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-09-20 16:28:18 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-20 16:28:18 +1000 |
commit | aeca5a5ed5816a7797a0807142a41e14baac80f6 (patch) | |
tree | 1cdc5680aa209c124fcc70b47b9ca2d66b8eb368 /synapse/http/site.py | |
parent | Improve the logging when handling a federation transaction (#3904) (diff) | |
download | synapse-aeca5a5ed5816a7797a0807142a41e14baac80f6.tar.xz |
Add a regression test for logging on failed connections (#3912)
Diffstat (limited to 'synapse/http/site.py')
-rw-r--r-- | synapse/http/site.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/http/site.py b/synapse/http/site.py index 9579e8cd0d..d41d672934 100644 --- a/synapse/http/site.py +++ b/synapse/http/site.py @@ -75,9 +75,9 @@ class SynapseRequest(Request): return '<%s at 0x%x method=%r uri=%r clientproto=%r site=%r>' % ( self.__class__.__name__, id(self), - self.method, + self.method.decode('ascii', errors='replace'), self.get_redacted_uri(), - self.clientproto, + self.clientproto.decode('ascii', errors='replace'), self.site.site_tag, ) |