mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-10 10:42:31 -05:00
Various clean-ups to the logging context code (#8935)
This commit is contained in:
parent
895e04319b
commit
1619802228
11 changed files with 20 additions and 39 deletions
|
|
@ -126,7 +126,7 @@ class FederationTestCase(unittest.HomeserverTestCase):
|
|||
room_version,
|
||||
)
|
||||
|
||||
with LoggingContext(request="send_rejected"):
|
||||
with LoggingContext("send_rejected"):
|
||||
d = run_in_background(self.handler.on_receive_pdu, OTHER_SERVER, ev)
|
||||
self.get_success(d)
|
||||
|
||||
|
|
@ -178,7 +178,7 @@ class FederationTestCase(unittest.HomeserverTestCase):
|
|||
room_version,
|
||||
)
|
||||
|
||||
with LoggingContext(request="send_rejected"):
|
||||
with LoggingContext("send_rejected"):
|
||||
d = run_in_background(self.handler.on_receive_pdu, OTHER_SERVER, ev)
|
||||
self.get_success(d)
|
||||
|
||||
|
|
@ -198,7 +198,7 @@ class FederationTestCase(unittest.HomeserverTestCase):
|
|||
# the auth code requires that a signature exists, but doesn't check that
|
||||
# signature... go figure.
|
||||
join_event.signatures[other_server] = {"x": "y"}
|
||||
with LoggingContext(request="send_join"):
|
||||
with LoggingContext("send_join"):
|
||||
d = run_in_background(
|
||||
self.handler.on_send_join_request, other_server, join_event
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue