diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2020-05-07 11:58:28 +0100 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2020-05-07 11:58:28 +0100 |
commit | 1786b1ee0d994cb65da637480656c67a347a8e61 (patch) | |
tree | a79cbb1170d8e166994bc4cf63296d5c42b5d3d1 | |
parent | Merge pull request #7398 from Starbix/alpine-3.11 (diff) | |
download | synapse-1786b1ee0d994cb65da637480656c67a347a8e61.tar.xz |
Add debug logging
-rw-r--r-- | synapse/handlers/events.py | 1 | ||||
-rw-r--r-- | synapse/storage/data_stores/main/roommember.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/events.py b/synapse/handlers/events.py index 71a89f09c7..8813e428aa 100644 --- a/synapse/handlers/events.py +++ b/synapse/handlers/events.py @@ -172,6 +172,7 @@ class EventHandler(BaseHandler): if not event: return None + logger.info("get_users_in_room called from get_event!") users = await self.store.get_users_in_room(event.room_id) is_peeking = user.to_string() not in users diff --git a/synapse/storage/data_stores/main/roommember.py b/synapse/storage/data_stores/main/roommember.py index d5bd0cb5cf..15a7bf62e8 100644 --- a/synapse/storage/data_stores/main/roommember.py +++ b/synapse/storage/data_stores/main/roommember.py @@ -15,6 +15,7 @@ # limitations under the License. import logging +import traceback from typing import Iterable, List, Set from six import iteritems, itervalues @@ -165,6 +166,7 @@ class RoomMemberWorkerStore(EventsWorkerStore): @cached(max_entries=100000, iterable=True) def get_users_in_room(self, room_id): + logger.info("Traceback: %s", traceback.format_stack()) return self.db.runInteraction( "get_users_in_room", self.get_users_in_room_txn, room_id ) |