diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-08-16 14:42:35 +0100 |
---|---|---|
committer | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-08-16 14:42:35 +0100 |
commit | ad4ac2c016d2916c51695fd11d3a7b52e38d0ca2 (patch) | |
tree | 3bac897583f3ef187361269f2cdfb80670136e22 /syncapi/storage | |
parent | ec16c944eb646c6ef61f0b7783f2f3869b9bc10c (diff) |
Stop spamming the logs with `StateBetween: ignoring deleted state` event IDs
Diffstat (limited to 'syncapi/storage')
-rw-r--r-- | syncapi/storage/postgres/output_room_events_table.go | 4 | ||||
-rw-r--r-- | syncapi/storage/sqlite3/output_room_events_table.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/syncapi/storage/postgres/output_room_events_table.go b/syncapi/storage/postgres/output_room_events_table.go index 8f633640..9c758cac 100644 --- a/syncapi/storage/postgres/output_room_events_table.go +++ b/syncapi/storage/postgres/output_room_events_table.go @@ -279,8 +279,8 @@ func (s *outputRoomEventsStatements) SelectStateInRange( log.WithFields(log.Fields{ "since": r.From, "current": r.To, - "adds": addIDs, - "dels": delIDs, + "adds": len(addIDs), + "dels": len(delIDs), }).Warn("StateBetween: ignoring deleted state") } diff --git a/syncapi/storage/sqlite3/output_room_events_table.go b/syncapi/storage/sqlite3/output_room_events_table.go index 91fd35b5..cd9a46d4 100644 --- a/syncapi/storage/sqlite3/output_room_events_table.go +++ b/syncapi/storage/sqlite3/output_room_events_table.go @@ -234,8 +234,8 @@ func (s *outputRoomEventsStatements) SelectStateInRange( log.WithFields(log.Fields{ "since": r.From, "current": r.To, - "adds": addIDsJSON, - "dels": delIDsJSON, + "adds": len(addIDsJSON), + "dels": len(delIDsJSON), }).Warn("StateBetween: ignoring deleted state") } |