diff src/plugins/plugin_xep_0060.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 b4a264915ea9
children 633fcd13a7dc
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0060.py	Sun Oct 19 12:31:28 2014 +0200
+++ b/src/plugins/plugin_xep_0060.py	Sat Oct 18 16:28:37 2014 +0200
@@ -177,7 +177,7 @@
         d_dict = {}
         for publisher, node in data.items():
             if node not in found_nodes:
-                log.info("Skip the items retrieval for [{node}]: node doesn't exist".format(node=node))
+                log.debug("Skip the items retrieval for [{node}]: node doesn't exist".format(node=node))
                 continue  # avoid pubsub "item-not-found" error
             d_dict[publisher] = client.items(service, node, max_items, item_ids, sub_id, client.parent.jid)
         defer.returnValue(d_dict)
@@ -223,7 +223,7 @@
         d_list = []
         for nodeIdentifier in (set(nodeIdentifiers) - set(subscribed_nodes)):
             if nodeIdentifier not in found_nodes:
-                log.info("Skip the subscription to [{node}]: node doesn't exist".format(node=nodeIdentifier))
+                log.debug("Skip the subscription to [{node}]: node doesn't exist".format(node=nodeIdentifier))
                 continue  # avoid sat-pubsub "SubscriptionExists" error
             d_list.append(client.subscribe(service, nodeIdentifier, sub_jid or client.parent.jid.userhostJID(), options=options))
         defer.returnValue(d_list)