Skip to content

Commit 34db44d

Browse files
reivilibreH-Shay
authored andcommitted
Log exceptions when failing to auto-join new user according to the auto_join_rooms option. (element-hq#17176)
Would have been useful for tracking down element-hq#16878. Signed-off-by: Olivier 'reivilibre <[email protected]>
1 parent 9c184c2 commit 34db44d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/17176.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Log exceptions when failing to auto-join new user according to the `auto_join_rooms` option.

synapse/handlers/register.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ async def _join_rooms(self, user_id: str) -> None:
590590
# moving away from bare excepts is a good thing to do.
591591
logger.error("Failed to join new user to %r: %r", r, e)
592592
except Exception as e:
593-
logger.error("Failed to join new user to %r: %r", r, e)
593+
logger.error("Failed to join new user to %r: %r", r, e, exc_info=True)
594594

595595
async def _auto_join_rooms(self, user_id: str) -> None:
596596
"""Automatically joins users to auto join rooms - creating the room in the first place

0 commit comments

Comments
 (0)