Removed "WARNING" debug messages, because they are irrelevant

This commit is contained in:
mathieui 2011-11-07 19:38:37 +01:00 committed by Florent Le Coz
parent f2b228e692
commit 9c688795d1
2 changed files with 5 additions and 6 deletions

View file

@ -66,7 +66,7 @@ def leave_groupchat(xmpp, jid, own_nick, msg):
try:
xmpp.plugin['xep_0045'].leaveMUC(jid, own_nick, msg)
except KeyError:
log.debug("WARNING: in muc.leave_groupchat: could not leave the room")
log.debug("muc.leave_groupchat: could not leave the room %s" % jid)
def set_user_role(xmpp, jid, nick, reason, role):
"""

View file

@ -118,13 +118,12 @@ class Tab(object):
@state.setter
def state(self, value):
if not value in STATE_COLORS:
log.debug("WARNING: invalid value for tab state")
return
log.debug("Invalid value for tab state: %s" % value)
elif STATE_PRIORITY[value] < STATE_PRIORITY[self._state] and \
value != 'current':
log.debug("WARNING: did not set status because of lower priority")
return
self._state = value
log.debug("Did not set status because of lower priority, asked: %s, kept: %s" % (value, self.state))
else:
self._state = value
@staticmethod
def resize(scr):