Give the event_id of the failed event

This commit is contained in:
Erik Johnston 2014-08-20 15:53:07 +01:00
parent d100ac8c82
commit e8244c23ba

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"):