mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Enhance logging for inbound federation events (#12301)
It is currently rather hard to see which rooms are causing inbound federation traffic. Add the room id to the logs.
This commit is contained in:
parent
14662d3c18
commit
38adf14998
1
changelog.d/12301.misc
Normal file
1
changelog.d/12301.misc
Normal file
@ -0,0 +1 @@
|
||||
Enhance logging for inbound federation events.
|
@ -1092,7 +1092,7 @@ class FederationServer(FederationBase):
|
||||
# has started processing).
|
||||
while True:
|
||||
async with lock:
|
||||
logger.info("handling received PDU: %s", event)
|
||||
logger.info("handling received PDU in room %s: %s", room_id, event)
|
||||
try:
|
||||
with nested_logging_context(event.event_id):
|
||||
await self._federation_event_handler.on_receive_pdu(
|
||||
|
Loading…
Reference in New Issue
Block a user