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
|
@ -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