From 3b4597b83f6380620ece41fb2f8077e23383ec66 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 8 Jul 2021 13:21:27 +0100 Subject: [PATCH] Log when we prune superfluous events --- roomserver/storage/shared/storage.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roomserver/storage/shared/storage.go b/roomserver/storage/shared/storage.go index e77d62e0..da0a0f5e 100644 --- a/roomserver/storage/shared/storage.go +++ b/roomserver/storage/shared/storage.go @@ -14,6 +14,7 @@ import ( "github.com/matrix-org/dendrite/roomserver/types" "github.com/matrix-org/gomatrixserverlib" "github.com/matrix-org/util" + "github.com/sirupsen/logrus" "github.com/tidwall/gjson" ) @@ -170,6 +171,7 @@ func (d *Database) AddState( for _, event := range events { if state[i].EventNID == event { state = append(state[:i], state[i+1:]...) + logrus.Warn("PRUNING SUPERFLUOUS EVENT") } } }