Commit 725a2245 authored by mathieui's avatar mathieui

Remove some debug info

parent 8c5faa91
......@@ -77,7 +77,6 @@ class Contact(object):
def pending_in(self):
log.debug('IN %s %s' % (self.bare_jid, self.__item['pending_in']))
return self.__item['pending_in']
......@@ -86,7 +85,6 @@ class Contact(object):
def pending_out(self):
log.debug('OUT %s %s' % (self.bare_jid, self.__item['pending_out']))
return self.__item['pending_out']
......@@ -55,7 +55,6 @@ class Roster(object):
key = JID(key).bare
if key in self.contacts and self.contacts[key] is not None:
return self.contacts[key]
log.debug('JIDS: %s' % self.jids())
if key in self.jids():
contact = Contact(self.__node[key])
self.contacts[key] = contact
......@@ -68,9 +67,9 @@ class Roster(object):
def __delitem__(self, jid):
"""Remove a contact from the roster"""
jid = JID(jid).bare
if jid not in self.contacts:
return log.debug('not in self.contacts')
contact = self[jid]
if not contact:
for group in list(self.groups.values()):
if not group:
......@@ -104,7 +103,6 @@ class Roster(object):
def jids(self):
"""List of the contact JIDS"""
log.debug('%s' % self.__node.keys())
return [key for key in self.__node.keys() if key not in self.__mucs and key != self.jid]
def get_contacts(self):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment