From 3f178332d68cb723150d0e392ed92780e4e5a610 Mon Sep 17 00:00:00 2001 From: Sean Quah <8349537+squahtx@users.noreply.github.com> Date: Tue, 12 Jul 2022 18:57:38 +0100 Subject: [PATCH] Log the stack when waiting for an entire room to be un-partial stated (#13257) The stack is already logged when waiting for an event to be un-partial stated. Log the stack for rooms as well, to aid in debugging. --- changelog.d/13257.misc | 1 + synapse/storage/util/partial_state_events_tracker.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 changelog.d/13257.misc diff --git a/changelog.d/13257.misc b/changelog.d/13257.misc new file mode 100644 index 000000000..5fc138852 --- /dev/null +++ b/changelog.d/13257.misc @@ -0,0 +1 @@ +Log the stack when waiting for an entire room to be un-partial stated. diff --git a/synapse/storage/util/partial_state_events_tracker.py b/synapse/storage/util/partial_state_events_tracker.py index 211437cfa..466e5137f 100644 --- a/synapse/storage/util/partial_state_events_tracker.py +++ b/synapse/storage/util/partial_state_events_tracker.py @@ -166,6 +166,7 @@ class PartialCurrentStateTracker: logger.info( "Awaiting un-partial-stating of room %s", room_id, + stack_info=True, ) await make_deferred_yieldable(d)