1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 13:29:49 +00:00

Fix logging level names for post-server-ui-split

(Bitbake rev: dc5a5c39291ec223cd761dce59d29eee7316cb70)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Chris Larson
2010-12-17 11:49:31 -07:00
committed by Richard Purdie
parent 93e20c51c4
commit 760b82e732
2 changed files with 21 additions and 10 deletions
-10
View File
@@ -74,16 +74,6 @@ def main(server, eventHandler):
helper = uihelper.BBUIHelper()
# Set up logging to stdout in our usual format
logging.addLevelName(logging.INFO, "NOTE")
logging.addLevelName(logging.CRITICAL, "FATAL")
for level in xrange(logging.INFO - 1, logging.DEBUG + 1, -1):
logging.addLevelName(level, logging.getLevelName(logging.INFO))
for level in xrange(logging.DEBUG - 1, 0, -1):
logging.addLevelName(level, logging.getLevelName(logging.DEBUG))
console = logging.StreamHandler(sys.stdout)
format = bb.msg.BBLogFormatter("%(levelname)s: %(message)s")
console.setFormatter(format)