Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix incorrect log about not persisting duplicate state event. (#4776)
Browse files Browse the repository at this point in the history
We were logging this when it was not true.
  • Loading branch information
richvdh authored Mar 1, 2019
1 parent 1beebe9 commit 3064952
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.d/4776.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix incorrect log about not persisting duplicate state event.
7 changes: 4 additions & 3 deletions synapse/handlers/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,10 +436,11 @@ def send_nonmember_event(self, requester, event, context, ratelimit=True):

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(
Expand Down

0 comments on commit 3064952

Please sign in to comment.