Add a regression test for logging on failed connections (#3912)

This commit is contained in:
Amber Brown 2018-09-20 16:28:18 +10:00 committed by GitHub
parent 642199570c
commit aeca5a5ed5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 77 additions and 5 deletions

View file

@ -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,
)