From 0708f437ccfb57fe44e2d993f57163a844fe726c Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Mon, 24 Dec 2018 09:49:42 +0000 Subject: Log roomid along with Unknown room (#4297) --- changelog.d/4297.misc | 1 + synapse/storage/state.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/4297.misc diff --git a/changelog.d/4297.misc b/changelog.d/4297.misc new file mode 100644 index 0000000000..63106e26f6 --- /dev/null +++ b/changelog.d/4297.misc @@ -0,0 +1 @@ +Log room_id in Unknown room errors diff --git a/synapse/storage/state.py b/synapse/storage/state.py index d737bd6778..a134e9b3e8 100644 --- a/synapse/storage/state.py +++ b/synapse/storage/state.py @@ -432,7 +432,7 @@ class StateGroupWorkerStore(EventsWorkerStore, SQLBaseStore): create_id = state_ids.get((EventTypes.Create, "")) if not create_id: - raise NotFoundError("Unknown room") + raise NotFoundError("Unknown room %s" % (room_id)) create_event = yield self.get_event(create_id) defer.returnValue(create_event.content.get("room_version", "1")) -- cgit 1.4.1