summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-07 19:38:37 +0100
committermathieui <mathieui@mathieui.net>2011-11-07 19:38:37 +0100
commit153137e5d2e610afa4a7ca0ce2e3855ff1dec253 (patch)
treef24ee6f7a13bb0d58cc415aff01180037978b6b1 /src/tabs.py
parent70a809a7b4e5c4585b31e7ed023ae0b91d65c7a4 (diff)
downloadpoezio-153137e5d2e610afa4a7ca0ce2e3855ff1dec253.tar.gz
poezio-153137e5d2e610afa4a7ca0ce2e3855ff1dec253.tar.bz2
poezio-153137e5d2e610afa4a7ca0ce2e3855ff1dec253.tar.xz
poezio-153137e5d2e610afa4a7ca0ce2e3855ff1dec253.zip
Removed "WARNING" debug messages, because they are irrelevant
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 9f37190a..f80abdf7 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -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):