mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Improve logging in federation handler.
This commit is contained in:
parent
0897a09f49
commit
e639a3516d
@ -93,6 +93,8 @@ class FederationHandler(BaseHandler):
|
|||||||
"""
|
"""
|
||||||
event = self.pdu_codec.event_from_pdu(pdu)
|
event = self.pdu_codec.event_from_pdu(pdu)
|
||||||
|
|
||||||
|
logger.debug("Got event: %s", event.event_id)
|
||||||
|
|
||||||
with (yield self.lock_manager.lock(pdu.context)):
|
with (yield self.lock_manager.lock(pdu.context)):
|
||||||
if event.is_state and not backfilled:
|
if event.is_state and not backfilled:
|
||||||
is_new_state = yield self.state_handler.handle_new_state(
|
is_new_state = yield self.state_handler.handle_new_state(
|
||||||
@ -106,7 +108,7 @@ class FederationHandler(BaseHandler):
|
|||||||
# respond to PDU.
|
# respond to PDU.
|
||||||
|
|
||||||
if hasattr(event, "state_key") and not is_new_state:
|
if hasattr(event, "state_key") and not is_new_state:
|
||||||
logger.debug("Ignoring old state.")
|
logger.debug("Ignoring old state: %s", event.event_id)
|
||||||
return
|
return
|
||||||
|
|
||||||
target_is_mine = False
|
target_is_mine = False
|
||||||
|
Loading…
Reference in New Issue
Block a user