Compare commits

...

2 Commits

Author SHA1 Message Date
Olivier 'reivilibre
9112916ba5 Newsfile
Signed-off-by: Olivier 'reivilibre <oliverw@matrix.org>
2024-05-10 13:28:43 +01:00
Olivier 'reivilibre
7bf6fe7413 Add exception logging when failing to auto-join new user 2024-05-09 16:11:55 +01:00
2 changed files with 2 additions and 1 deletions

1
changelog.d/17176.misc Normal file
View File

@@ -0,0 +1 @@
Log exceptions when failing to auto-join new user according to the `auto_join_rooms` option.

View File

@@ -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