this shouldn't be debug

pull/2492/head
David Baker 2017-10-03 15:20:14 +01:00
parent bd769a81e1
commit c46a0d7eb4
1 changed files with 2 additions and 2 deletions

View File

@ -218,14 +218,14 @@ class RoomMemberHandler(BaseHandler):
)
if not is_requester_admin:
if self.hs.config.block_non_admin_invites:
logger.debug(
logger.info(
"Blocking invite: user is not admin and non-admin "
"invites disabled"
)
block_invite = True
if not self.spam_checker.user_may_invite(requester.user):
logger.debug("Blocking invite due to spam checker")
logger.info("Blocking invite due to spam checker")
block_invite = True
if block_invite: