diff options
author | Erik Johnston <erik@matrix.org> | 2016-04-13 11:11:46 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-04-13 11:11:46 +0100 |
commit | c53f9d561e95cd8c0996effcb89b09011a17be8b (patch) | |
tree | 2035266de48c950bd0aa8c66a0162f8f89f3dd66 /synapse/handlers/_base.py | |
parent | Update replication.rst (diff) | |
download | synapse-c53f9d561e95cd8c0996effcb89b09011a17be8b.tar.xz |
Don't auto log failed auth checks
Diffstat (limited to 'synapse/handlers/_base.py')
-rw-r--r-- | synapse/handlers/_base.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/handlers/_base.py b/synapse/handlers/_base.py index aaf6b1b837..13a675b208 100644 --- a/synapse/handlers/_base.py +++ b/synapse/handlers/_base.py @@ -316,7 +316,11 @@ class BaseHandler(object): if ratelimit: self.ratelimit(requester) - self.auth.check(event, auth_events=context.current_state) + try: + self.auth.check(event, auth_events=context.current_state) + except AuthError as err: + logger.warn("Denying new event %r because %s", event, err) + raise err yield self.maybe_kick_guest_users(event, context.current_state.values()) |