mirror of
https://github.com/element-hq/synapse
synced 2024-09-29 17:02:41 +00:00
Log requests which are simulated by the unit tests. (#4905)
Rather than stubbing out the access_log, make it actually log the requests, which makes it a lot more obvious what is going on during tests.
This commit is contained in:
parent
263f2c9ce1
commit
a6f2d3053d
2 changed files with 2 additions and 8 deletions
1
changelog.d/4905.misc
Normal file
1
changelog.d/4905.misc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Log requests which are simulated by the unit tests.
|
|
@ -119,14 +119,7 @@ class FakeSite:
|
||||||
|
|
||||||
server_version_string = b"1"
|
server_version_string = b"1"
|
||||||
site_tag = "test"
|
site_tag = "test"
|
||||||
|
access_logger = logging.getLogger("synapse.access.http.fake")
|
||||||
@property
|
|
||||||
def access_logger(self):
|
|
||||||
class FakeLogger:
|
|
||||||
def info(self, *args, **kwargs):
|
|
||||||
pass
|
|
||||||
|
|
||||||
return FakeLogger()
|
|
||||||
|
|
||||||
|
|
||||||
def make_request(
|
def make_request(
|
||||||
|
|
Loading…
Reference in a new issue