Give the event_id of the failed event

paul/schema_breaking_changes
Erik Johnston 2014-08-20 15:53:07 +01:00
parent d100ac8c82
commit e8244c23ba
1 changed files with 4 additions and 1 deletions

View File

@ -121,7 +121,10 @@ class DataStore(RoomMemberStore, RoomStore,
try: try:
yield self._simple_insert("events", vals) yield self._simple_insert("events", vals)
except: except:
logger.exception("Failed to persist, probably duplicate") logger.exception(
"Failed to persist, probably duplicate: %s",
event_id
)
return return
if not backfilled and hasattr(event, "state_key"): if not backfilled and hasattr(event, "state_key"):