summary refs log tree commit diff
path: root/tests/server.py
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 /tests/server.py
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.
Diffstat (limited to 'tests/server.py')
-rw-r--r--tests/server.py9
1 files changed, 1 insertions, 8 deletions
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(