Mercurial > libervia-backend
comparison src/core/xmpp.py @ 1246:8b891f9be183
core, plugins: improve a bit some log messages
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 18 Oct 2014 16:28:37 +0200 |
parents | 9355f48f979e |
children | f8a8434dbac7 56adf73bedeb |
comparison
equal
deleted
inserted
replaced
1245:84d06701f5c4 | 1246:8b891f9be183 |
---|---|
235 #XXX: current behaviour: we don't want contact in our roster list | 235 #XXX: current behaviour: we don't want contact in our roster list |
236 # if there is no presence subscription | 236 # if there is no presence subscription |
237 # may change in the future | 237 # may change in the future |
238 self.removeItem(item.jid) | 238 self.removeItem(item.jid) |
239 return | 239 return |
240 log.info(_("new contact in roster list: %s") % item.jid.full()) | 240 log.debug(_("New contact in roster list: %s") % item.jid.full()) |
241 if not item.subscriptionTo: | 241 if not item.subscriptionTo: |
242 log.warning(_("You are not subscribed to this contact !")) | 242 if not item.subscriptionFrom: |
243 log.info(_("There's no subscription between you and [%s]!") % item.jid.full()) | |
244 else: | |
245 log.info(_("You are not subscribed to [%s]!") % item.jid.full()) | |
243 if not item.subscriptionFrom: | 246 if not item.subscriptionFrom: |
244 log.warning(_("This contact is not subscribed to you !")) | 247 log.info(_("[%s] is not subscribed to you!") % item.jid.full()) |
245 #self.host.memory.addContact(item.jid, item_attr, item.groups, self.parent.profile) | 248 #self.host.memory.addContact(item.jid, item_attr, item.groups, self.parent.profile) |
246 | 249 |
247 bare_jid = item.jid.userhostJID() | 250 bare_jid = item.jid.userhostJID() |
248 self._jids[bare_jid] = item | 251 self._jids[bare_jid] = item |
249 for group in item.groups: | 252 for group in item.groups: |