diff 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
line wrap: on
line diff
--- a/src/core/xmpp.py	Sun Oct 19 12:31:28 2014 +0200
+++ b/src/core/xmpp.py	Sat Oct 18 16:28:37 2014 +0200
@@ -237,11 +237,14 @@
             # 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()