comparison sat_frontends/quick_frontend/quick_app.py @ 2976:49458e12e414

quick frontends (app, chat): disabled the 2 most verbose logs, as they are barely useful and make reading logs difficult.
author Goffi <goffi@goffi.org>
date Sun, 30 Jun 2019 15:41:59 +0200
parents 5b0f897689b7
children ba9aaf7d6cd0
comparison
equal deleted inserted replaced
2975:d86ecc34516e 2976:49458e12e414
824 824
825 def setPresenceStatus(self, show="", status=None, profile=C.PROF_KEY_NONE): 825 def setPresenceStatus(self, show="", status=None, profile=C.PROF_KEY_NONE):
826 raise NotImplementedError 826 raise NotImplementedError
827 827
828 def presenceUpdateHandler(self, entity_s, show, priority, statuses, profile): 828 def presenceUpdateHandler(self, entity_s, show, priority, statuses, profile):
829 log.debug( 829 # XXX: this log is commented because it's really too verbose even for DEBUG logs
830 _( 830 # but it is kept here as it may still be useful for troubleshooting
831 u"presence update for %(entity)s (show=%(show)s, priority=%(priority)s, " 831 # log.debug(
832 u"statuses=%(statuses)s) [profile:%(profile)s]" 832 # _(
833 ) 833 # u"presence update for %(entity)s (show=%(show)s, priority=%(priority)s, "
834 % { 834 # u"statuses=%(statuses)s) [profile:%(profile)s]"
835 "entity": entity_s, 835 # )
836 C.PRESENCE_SHOW: show, 836 # % {
837 C.PRESENCE_PRIORITY: priority, 837 # "entity": entity_s,
838 C.PRESENCE_STATUSES: statuses, 838 # C.PRESENCE_SHOW: show,
839 "profile": profile, 839 # C.PRESENCE_PRIORITY: priority,
840 } 840 # C.PRESENCE_STATUSES: statuses,
841 ) 841 # "profile": profile,
842 # }
843 # )
842 entity = jid.JID(entity_s) 844 entity = jid.JID(entity_s)
843 845
844 if entity == self.profiles[profile].whoami: 846 if entity == self.profiles[profile].whoami:
845 if show == C.PRESENCE_UNAVAILABLE: 847 if show == C.PRESENCE_UNAVAILABLE:
846 self.setPresenceStatus(C.PRESENCE_UNAVAILABLE, "", profile=profile) 848 self.setPresenceStatus(C.PRESENCE_UNAVAILABLE, "", profile=profile)