0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-18 07:52:56 +01:00

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

We were logging this when it was not true.
This commit is contained in:
Richard van der Hoff 2019-03-01 16:47:12 +00:00 committed by GitHub
parent 1beebe916f
commit 3064952939
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

1
changelog.d/4776.bugfix Normal file
View file

@ -0,0 +1 @@
Fix incorrect log about not persisting duplicate state event.

View file

@ -436,10 +436,11 @@ class EventCreationHandler(object):
if event.is_state(): if event.is_state():
prev_state = yield self.deduplicate_state_event(event, context) 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: 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) defer.returnValue(prev_state)
yield self.handle_new_client_event( yield self.handle_new_client_event(