summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-09-15 15:18:51 +0100
committerErik Johnston <erik@matrix.org>2014-09-15 16:24:03 +0100
commite639a3516d271c395862bcd0c6facfd8c5c9ff58 (patch)
treebd6d2d2e73ac3135403956c4f99bc84accad472a
parentFix unit tests after adding extra argument on put_json (diff)
downloadsynapse-e639a3516d271c395862bcd0c6facfd8c5c9ff58.tar.xz
Improve logging in federation handler.
-rw-r--r--synapse/handlers/federation.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index 59cbf71d78..5187bcb5bb 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -93,6 +93,8 @@ class FederationHandler(BaseHandler):
         """
         event = self.pdu_codec.event_from_pdu(pdu)
 
+        logger.debug("Got event: %s", event.event_id)
+
         with (yield self.lock_manager.lock(pdu.context)):
             if event.is_state and not backfilled:
                 is_new_state = yield self.state_handler.handle_new_state(
@@ -106,7 +108,7 @@ class FederationHandler(BaseHandler):
         # respond to PDU.
 
         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
 
         target_is_mine = False