Skip to content
Snippets Groups Projects
Commit 2043527b authored by Mark Haines's avatar Mark Haines
Browse files

Don't try to use a txn when not in one, remove spurious debug logging

parent 53447e9c
No related branches found
No related tags found
No related merge requests found
...@@ -287,8 +287,6 @@ class Pusher(object): ...@@ -287,8 +287,6 @@ class Pusher(object):
logger.warn("Neither notify nor dont_notify in actions: adding default") logger.warn("Neither notify nor dont_notify in actions: adding default")
actions.extend(Pusher.DEFAULT_ACTIONS) actions.extend(Pusher.DEFAULT_ACTIONS)
logger.info("FNARG: %r", actions)
if 'dont_notify' in actions: if 'dont_notify' in actions:
logger.debug( logger.debug(
"%s for %s: dont_notify", "%s for %s: dont_notify",
......
...@@ -218,9 +218,7 @@ class PushRuleStore(SQLBaseStore): ...@@ -218,9 +218,7 @@ class PushRuleStore(SQLBaseStore):
{'enabled': 1 if enabled else 0}, {'enabled': 1 if enabled else 0},
desc="set_push_rule_enabled", desc="set_push_rule_enabled",
) )
txn.call_after( self.get_push_rules_enabled_for_user.invalidate(user_name)
self.get_push_rules_enabled_for_user.invalidate, user_name
)
class RuleNotFoundException(Exception): class RuleNotFoundException(Exception):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment