From 0cb3ce5765a01e82c72fe5213d46d63c1787d53e Mon Sep 17 00:00:00 2001 From: stamparm Date: Fri, 19 Apr 2013 10:10:06 +0200 Subject: [PATCH] Bug fix (maybe it will have repercusions in future as this was a silent bug) --- lib/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index d9e7dda98..217a12bb1 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -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)