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.pull/10547/merge
parent
14662d3c18
commit
38adf14998
|
@ -0,0 +1 @@
|
||||||
|
Enhance logging for inbound federation events.
|
|
@ -1092,7 +1092,7 @@ class FederationServer(FederationBase):
|
||||||
# has started processing).
|
# has started processing).
|
||||||
while True:
|
while True:
|
||||||
async with lock:
|
async with lock:
|
||||||
logger.info("handling received PDU: %s", event)
|
logger.info("handling received PDU in room %s: %s", room_id, event)
|
||||||
try:
|
try:
|
||||||
with nested_logging_context(event.event_id):
|
with nested_logging_context(event.event_id):
|
||||||
await self._federation_event_handler.on_receive_pdu(
|
await self._federation_event_handler.on_receive_pdu(
|
||||||
|
|
Loading…
Reference in New Issue