Don't log all auth events every time we call auth.check

This commit is contained in:
Erik Johnston 2015-05-01 14:34:20 +01:00
parent 3bcdf3664c
commit adb5b76ff5

View File

@ -65,7 +65,10 @@ class Auth(object):
if event.type == EventTypes.Aliases: if event.type == EventTypes.Aliases:
return True return True
logger.debug("Auth events: %s", auth_events) logger.debug(
"Auth events: %s",
[a.event_id for a in auth_events]
)
if event.type == EventTypes.Member: if event.type == EventTypes.Member:
allowed = self.is_membership_change_allowed( allowed = self.is_membership_change_allowed(