Remove spurious log level guards

This commit is contained in:
Erik Johnston 2017-05-22 16:21:06 +01:00
parent 7fb80b5eae
commit d668caa79c

View File

@ -334,7 +334,6 @@ class RulesForRoom(object):
if membership == Membership.JOIN
)
if logger.isEnabledFor(logging.DEBUG):
logger.debug("Joined: %r", interested_in_user_ids)
if_users_with_pushers = yield self.store.get_if_users_have_pushers(
@ -346,14 +345,12 @@ class RulesForRoom(object):
uid for uid, have_pusher in if_users_with_pushers.iteritems() if have_pusher
)
if logger.isEnabledFor(logging.DEBUG):
logger.debug("With pushers: %r", user_ids)
users_with_receipts = yield self.store.get_users_with_read_receipts_in_room(
self.room_id, on_invalidate=self.invalidate_all_cb,
)
if logger.isEnabledFor(logging.DEBUG):
logger.debug("With receipts: %r", users_with_receipts)
# any users with pushers must be ours: they have pushers