summary refs log tree commit diff
path: root/synapse/storage/__init__.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-08-20 15:53:07 +0100
committerErik Johnston <erik@matrix.org>2014-08-20 15:53:07 +0100
commite8244c23baf150c59e737761c15ce540a3e9e26f (patch)
treeed6137cebe145556facf241b2cd9c3b6f3ef42d1 /synapse/storage/__init__.py
parentFix test. get_joined_hosts_for_room get's called multiple times (diff)
downloadsynapse-e8244c23baf150c59e737761c15ce540a3e9e26f.tar.xz
Give the event_id of the failed event
Diffstat (limited to 'synapse/storage/__init__.py')
-rw-r--r--synapse/storage/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py
index 470b7b7663..7732906927 100644
--- a/synapse/storage/__init__.py
+++ b/synapse/storage/__init__.py
@@ -121,7 +121,10 @@ class DataStore(RoomMemberStore, RoomStore,
         try:
             yield self._simple_insert("events", vals)
         except:
-            logger.exception("Failed to persist, probably duplicate")
+            logger.exception(
+                "Failed to persist, probably duplicate: %s",
+                event_id
+            )
             return
 
         if not backfilled and hasattr(event, "state_key"):