comparison src/plugins/plugin_xep_0115.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 c3884a63efde
children be3a301540c0
comparison
equal deleted inserted replaced
1245:84d06701f5c4 1246:8b891f9be183
138 try: 138 try:
139 c_ver = c_elem['ver'] 139 c_ver = c_elem['ver']
140 c_hash = c_elem['hash'] 140 c_hash = c_elem['hash']
141 c_node = c_elem['node'] 141 c_node = c_elem['node']
142 except KeyError: 142 except KeyError:
143 log.warning(_('Received invalid capabilities tag')) 143 log.warning(_('Received invalid capabilities tag: %s') % c_elem.toXml())
144 return 144 return
145 145
146 if c_ver in self.host.memory.disco.hashes: 146 if c_ver in self.host.memory.disco.hashes:
147 # we already know the hash, we update the jid entity 147 # we already know the hash, we update the jid entity
148 log.debug ("hash [%(hash)s] already in cache, updating entity [%(jid)s]" % {'hash': c_ver, 'jid': from_jid.full()}) 148 log.debug ("hash [%(hash)s] already in cache, updating entity [%(jid)s]" % {'hash': c_ver, 'jid': from_jid.full()})