forked from MirrorHub/synapse
add event id to logcontext when handling incoming PDUs (#10936)
This commit is contained in:
parent
94b620a5ed
commit
176aa55fd5
1
changelog.d/10936.misc
Normal file
1
changelog.d/10936.misc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Include the event id in the logcontext when handling PDUs received over federation.
|
|
@ -1008,7 +1008,10 @@ class FederationServer(FederationBase):
|
||||||
async with lock:
|
async with lock:
|
||||||
logger.info("handling received PDU: %s", event)
|
logger.info("handling received PDU: %s", event)
|
||||||
try:
|
try:
|
||||||
await self._federation_event_handler.on_receive_pdu(origin, event)
|
with nested_logging_context(event.event_id):
|
||||||
|
await self._federation_event_handler.on_receive_pdu(
|
||||||
|
origin, event
|
||||||
|
)
|
||||||
except FederationError as e:
|
except FederationError as e:
|
||||||
# XXX: Ideally we'd inform the remote we failed to process
|
# XXX: Ideally we'd inform the remote we failed to process
|
||||||
# the event, but we can't return an error in the transaction
|
# the event, but we can't return an error in the transaction
|
||||||
|
|
Loading…
Reference in a new issue