mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-09 03:52:37 -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
2 changed files with 2 additions and 1 deletions
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).
|
# 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…
Add table
Add a link
Reference in a new issue