summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2019-03-20 18:00:02 +0000
committerGitHub <noreply@github.com>2019-03-20 18:00:02 +0000
commita6f2d3053d4f6faf4ca9c3523688ba5aa6be69ec (patch)
tree32838d1c3021b840074415d426eb66935d7dd53b
parentMerge pull request #4895 from matrix-org/erikj/disable_user_search (diff)
downloadsynapse-a6f2d3053d4f6faf4ca9c3523688ba5aa6be69ec.tar.xz
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.
-rw-r--r--changelog.d/4905.misc1
-rw-r--r--tests/server.py9
2 files changed, 2 insertions, 8 deletions
diff --git a/changelog.d/4905.misc b/changelog.d/4905.misc
new file mode 100644

index 0000000000..0f00d5a3d5 --- /dev/null +++ b/changelog.d/4905.misc
@@ -0,0 +1 @@ +Log requests which are simulated by the unit tests. diff --git a/tests/server.py b/tests/server.py
index 37069afdda..ea26dea623 100644 --- a/tests/server.py +++ b/tests/server.py
@@ -119,14 +119,7 @@ class FakeSite: server_version_string = b"1" site_tag = "test" - - @property - def access_logger(self): - class FakeLogger: - def info(self, *args, **kwargs): - pass - - return FakeLogger() + access_logger = logging.getLogger("synapse.access.http.fake") def make_request(