Log exceptions when failing to auto-join new user according to the `auto_join_rooms` option. (#17176)
Would have been useful for tracking down #16878. Signed-off-by: Olivier 'reivilibre <oliverw@matrix.org>
This commit is contained in:
parent
7ef00b7628
commit
7e2412265d
|
@ -0,0 +1 @@
|
|||
Log exceptions when failing to auto-join new user according to the `auto_join_rooms` option.
|
|
@ -590,7 +590,7 @@ class RegistrationHandler:
|
|||
# moving away from bare excepts is a good thing to do.
|
||||
logger.error("Failed to join new user to %r: %r", r, e)
|
||||
except Exception as e:
|
||||
logger.error("Failed to join new user to %r: %r", r, e)
|
||||
logger.error("Failed to join new user to %r: %r", r, e, exc_info=True)
|
||||
|
||||
async def _auto_join_rooms(self, user_id: str) -> None:
|
||||
"""Automatically joins users to auto join rooms - creating the room in the first place
|
||||
|
|
Loading…
Reference in New Issue