mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-22 20:50:23 +03:00
Add extra logging
This commit is contained in:
parent
553c8a9b6b
commit
d38c884f10
1 changed files with 3 additions and 0 deletions
|
@ -286,9 +286,12 @@ class HttpPusher(object):
|
||||||
tweaks = push_rule_evaluator.tweaks_for_actions(push_action["actions"])
|
tweaks = push_rule_evaluator.tweaks_for_actions(push_action["actions"])
|
||||||
badge = yield push_tools.get_badge_count(self.hs.get_datastore(), self.user_id)
|
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)
|
event = yield self.store.get_event(push_action["event_id"], allow_none=True)
|
||||||
if event is None:
|
if event is None:
|
||||||
return True # It's been redacted
|
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)
|
rejected = yield self.dispatch_push(event, tweaks, badge)
|
||||||
if rejected is False:
|
if rejected is False:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue