summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-05-22 16:21:06 +0100
committerErik Johnston <erik@matrix.org>2017-05-22 16:21:06 +0100
commitd668caa79c4f99b6d2b93c5b96e640e88f71a5c0 (patch)
tree8d7912d4246a038e56195797e3fa45ad91c6e6b4 /synapse
parentCheck if current event is a membership event (diff)
downloadsynapse-d668caa79c4f99b6d2b93c5b96e640e88f71a5c0.tar.xz
Remove spurious log level guards
Diffstat (limited to 'synapse')
-rw-r--r--synapse/push/bulk_push_rule_evaluator.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/synapse/push/bulk_push_rule_evaluator.py b/synapse/push/bulk_push_rule_evaluator.py
index 2ee07f2f7e..354a2e64c3 100644
--- a/synapse/push/bulk_push_rule_evaluator.py
+++ b/synapse/push/bulk_push_rule_evaluator.py
@@ -334,8 +334,7 @@ class RulesForRoom(object):
             if membership == Membership.JOIN
         )
 
-        if logger.isEnabledFor(logging.DEBUG):
-            logger.debug("Joined: %r", interested_in_user_ids)
+        logger.debug("Joined: %r", interested_in_user_ids)
 
         if_users_with_pushers = yield self.store.get_if_users_have_pushers(
             interested_in_user_ids,
@@ -346,15 +345,13 @@ 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)
+        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)
+        logger.debug("With receipts: %r", users_with_receipts)
 
         # any users with pushers must be ours: they have pushers
         for uid in users_with_receipts: