Skip to content
Snippets Groups Projects
Unverified Commit 30649529 authored by Richard van der Hoff's avatar Richard van der Hoff Committed by GitHub
Browse files

Fix incorrect log about not persisting duplicate state event. (#4776)

We were logging this when it was not true.
parent 1beebe91
No related branches found
No related tags found
No related merge requests found
Fix incorrect log about not persisting duplicate state event.
......@@ -436,10 +436,11 @@ class EventCreationHandler(object):
if event.is_state():
prev_state = yield self.deduplicate_state_event(event, context)
logger.info(
"Not bothering to persist duplicate state event %s", event.event_id,
)
if prev_state is not None:
logger.info(
"Not bothering to persist state event %s duplicated by %s",
event.event_id, prev_state.event_id,
)
defer.returnValue(prev_state)
yield self.handle_new_client_event(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment