Skip to content

Commit

Permalink
Give the event_id of the failed event
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Aug 20, 2014
1 parent d100ac8 commit e8244c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion synapse/storage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ def _store_event(self, event, backfilled):
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"):
Expand Down

0 comments on commit e8244c2

Please sign in to comment.