From dc5a5c39291ec223cd761dce59d29eee7316cb70 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Fri, 17 Dec 2010 11:49:31 -0700 Subject: Fix logging level names for post-server-ui-split Signed-off-by: Chris Larson --- lib/bb/ui/knotty.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib/bb/ui/knotty.py') diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py index 0b47136cb..29c71aef2 100644 --- a/lib/bb/ui/knotty.py +++ b/lib/bb/ui/knotty.py @@ -72,16 +72,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, "ERROR") - - 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) -- cgit 1.2.3-korg