From 08761995c1994c7b4bcab48809b0ada412ec82e1 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Fri, 17 Jul 2020 11:31:28 +0100 Subject: [PATCH 1/2] Change "unknown room ver" logging to warning. It's somewhat expected for us to have unknown room versions in the database due to room version experiments. --- synapse/storage/data_stores/main/events_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/storage/data_stores/main/events_worker.py b/synapse/storage/data_stores/main/events_worker.py index a7d685f6308e..e812c67078de 100644 --- a/synapse/storage/data_stores/main/events_worker.py +++ b/synapse/storage/data_stores/main/events_worker.py @@ -639,7 +639,7 @@ def _get_events_from_db(self, event_ids, allow_rejected=False): else: room_version = KNOWN_ROOM_VERSIONS.get(room_version_id) if not room_version: - logger.error( + logger.warning( "Event %s in room %s has unknown room version %s", event_id, d["room_id"], From 11ebe98e599be916df50f821a11d80e567b5705a Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Fri, 17 Jul 2020 11:33:31 +0100 Subject: [PATCH 2/2] Newsfile --- changelog.d/7881.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/7881.misc diff --git a/changelog.d/7881.misc b/changelog.d/7881.misc new file mode 100644 index 000000000000..67991170990d --- /dev/null +++ b/changelog.d/7881.misc @@ -0,0 +1 @@ +Change "unknown room version" logging from 'error' to 'warning'.