add appid/device_display_name to to pusher logging

This commit is contained in:
Richard van der Hoff 2018-01-24 21:06:54 +00:00
parent 4528dd2443
commit e051abd20b

View file

@ -164,7 +164,7 @@ class HttpPusher(object):
logger.info( logger.info(
"Processing %i unprocessed push actions for %s starting at " "Processing %i unprocessed push actions for %s starting at "
"stream_ordering %s", "stream_ordering %s",
len(unprocessed), self.user_id, self.last_stream_ordering, len(unprocessed), self.name, self.last_stream_ordering,
) )
for push_action in unprocessed: for push_action in unprocessed:
@ -342,7 +342,7 @@ class HttpPusher(object):
@defer.inlineCallbacks @defer.inlineCallbacks
def _send_badge(self, badge): def _send_badge(self, badge):
logger.info("Sending updated badge count %d to %r", badge, self.user_id) logger.info("Sending updated badge count %d to %s", badge, self.name)
d = { d = {
'notification': { 'notification': {
'id': '', 'id': '',