From d38c884f10cfd0602b922bc21e65c15c329259a9 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Mon, 6 Apr 2020 13:02:45 +0100 Subject: Add extra logging --- synapse/push/httppusher.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/synapse/push/httppusher.py b/synapse/push/httppusher.py index 5bb17d1228..f021b14828 100644 --- a/synapse/push/httppusher.py +++ b/synapse/push/httppusher.py @@ -286,9 +286,12 @@ class HttpPusher(object): tweaks = push_rule_evaluator.tweaks_for_actions(push_action["actions"]) badge = yield push_tools.get_badge_count(self.hs.get_datastore(), self.user_id) + logger.info("BADGE COUNT: %s", badge) + event = yield self.store.get_event(push_action["event_id"], allow_none=True) if event is None: return True # It's been redacted + logger.info("DISPATCHING PUSH EVENT: %s, %s, %s", event, tweaks, badge) rejected = yield self.dispatch_push(event, tweaks, badge) if rejected is False: return False -- cgit 1.4.1