comparison sat/core/xmpp.py @ 2985:1d92ad95185f

core (xmpp): removed log for presence, as it is barely useful and too verbose even for debug logs.
author Goffi <goffi@goffi.org>
date Tue, 02 Jul 2019 19:36:26 +0200
parents 4bac4e734666
children 94708a7d3ecf
comparison
equal deleted inserted replaced
2984:4bac4e734666 2985:1d92ad95185f
1423 if not self.host.trigger.point("Presence send", self.parent, obj, presence_d): 1423 if not self.host.trigger.point("Presence send", self.parent, obj, presence_d):
1424 return 1424 return
1425 presence_d.addCallback(lambda __: super(SatPresenceProtocol, self).send(obj)) 1425 presence_d.addCallback(lambda __: super(SatPresenceProtocol, self).send(obj))
1426 1426
1427 def availableReceived(self, entity, show=None, statuses=None, priority=0): 1427 def availableReceived(self, entity, show=None, statuses=None, priority=0):
1428 log.debug(
1429 _(
1430 u"presence update for [{entity}] (available, show={show} "
1431 u"statuses={statuses} priority={priority})"
1432 )
1433 .format(
1434 entity=entity,
1435 show=show,
1436 statuses=statuses,
1437 priority=priority,
1438 )
1439 )
1440
1441 if not statuses: 1428 if not statuses:
1442 statuses = {} 1429 statuses = {}
1443 1430
1444 if None in statuses: # we only want string keys 1431 if None in statuses: # we only want string keys
1445 statuses[C.PRESENCE_STATUSES_DEFAULT] = statuses.pop(None) 1432 statuses[C.PRESENCE_STATUSES_DEFAULT] = statuses.pop(None)