core, plugins: improve a bit some log messages
This commit is contained in:
parent
bf353880b4
commit
fe06c14303
4 changed files with 11 additions and 8 deletions
|
|
@ -188,7 +188,7 @@ class ContextManager(object):
|
|||
def getContextForUser(self, other):
|
||||
log.debug(u"getContextForUser [%s]" % other)
|
||||
if not other.resource:
|
||||
log.warning("getContextForUser called with a bare jid")
|
||||
log.warning("getContextForUser called with a bare jid: %s" % other.full())
|
||||
return self.startContext(other)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ class XEP_0054(object):
|
|||
"""Parse a <PHOTO> elem and save the picture"""
|
||||
for elem in photo_xml.elements():
|
||||
if elem.name == 'TYPE':
|
||||
log.info(_('Photo of type [%s] found') % str(elem))
|
||||
log.debug(_('Photo of type [%s] found') % str(elem))
|
||||
if elem.name == 'BINVAL':
|
||||
log.debug(_('Decoding binary'))
|
||||
decoded = b64decode(str(elem))
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ class XEP_0060(object):
|
|||
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 @@ class XEP_0060(object):
|
|||
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)
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ class XEP_0115_handler(XMPPHandler):
|
|||
c_hash = c_elem['hash']
|
||||
c_node = c_elem['node']
|
||||
except KeyError:
|
||||
log.warning(_('Received invalid capabilities tag'))
|
||||
log.warning(_('Received invalid capabilities tag: %s') % c_elem.toXml())
|
||||
return
|
||||
|
||||
if c_ver in self.host.memory.disco.hashes:
|
||||
|
|
|
|||
Loading…
Reference in a new issue