core, plugins: improve a bit some log messages

This commit is contained in:
souliane 2014-10-18 16:28:37 +02:00
commit fe06c14303

View file

@ -237,11 +237,14 @@ class SatRosterProtocol(xmppim.RosterClientProtocol):
# may change in the future
self.removeItem(item.jid)
return
log.info(_("new contact in roster list: %s") % item.jid.full())
log.debug(_("New contact in roster list: %s") % item.jid.full())
if not item.subscriptionTo:
log.warning(_("You are not subscribed to this contact !"))
if not item.subscriptionFrom:
log.info(_("There's no subscription between you and [%s]!") % item.jid.full())
else:
log.info(_("You are not subscribed to [%s]!") % item.jid.full())
if not item.subscriptionFrom:
log.warning(_("This contact is not subscribed to you !"))
log.info(_("[%s] is not subscribed to you!") % item.jid.full())
#self.host.memory.addContact(item.jid, item_attr, item.groups, self.parent.profile)
bare_jid = item.jid.userhostJID()