Bug fix (maybe it will have repercusions in future as this was a silent bug)

This commit is contained in:
stamparm 2013-04-19 10:10:06 +02:00
parent b7d4afcc63
commit 0cb3ce5765

View File

@ -758,7 +758,7 @@ def setColor(message, bold=False):
if bold:
retVal = colored(message, color=None, on_color=None, attrs=("bold",))
elif level:
_ = LOGGER_HANDLER.level_map.get(logging.getLevelName(level))
_ = LOGGER_HANDLER.level_map.get(level)
if _:
background, foreground, bold = _
retVal = colored(message, color=foreground, on_color="on_%s" % background if background else None, attrs=("bold",) if bold else None)