summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-04-06 13:02:45 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2020-04-06 13:02:45 +0100
commitd38c884f10cfd0602b922bc21e65c15c329259a9 (patch)
treec5d3b99174319a3a1a74c769f4ef548b6b25b8de
parenttweak changelog (diff)
downloadsynapse-github/anoa/unread_notif_count.tar.xz
-rw-r--r--synapse/push/httppusher.py3
1 files changed, 3 insertions, 0 deletions
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