From e6a11bde38ada873f4a6a2f8d7794b29151657cd Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 7 Sep 2022 16:56:13 +0100 Subject: Revert debug logging --- synapse/push/bulk_push_rule_evaluator.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/synapse/push/bulk_push_rule_evaluator.py b/synapse/push/bulk_push_rule_evaluator.py index 21e41c07cd..339706a95d 100644 --- a/synapse/push/bulk_push_rule_evaluator.py +++ b/synapse/push/bulk_push_rule_evaluator.py @@ -159,14 +159,14 @@ class BulkPushRuleEvaluator: rules_by_user = await self.store.bulk_get_push_rules(local_users) - # logger.debug("Users in room: %s", local_users) - - # if logger.isEnabledFor(logging.DEBUG): - # logger.debug( - # "Returning push rules for %r %r", - # event.room_id, - # list(rules_by_user.keys()), - # ) + logger.debug("Users in room: %s", local_users) + + if logger.isEnabledFor(logging.DEBUG): + logger.debug( + "Returning push rules for %r %r", + event.room_id, + list(rules_by_user.keys()), + ) return rules_by_user -- cgit 1.5.1