From c439b62f395f01403443f7cf9766239ff70e6265 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Mon, 27 Mar 2006 21:05:29 +0000 Subject: Add support for the logging command (which does something) and the repo command (which doesn't). Create a mapping from string -> log level and make anaconda use that. --- anaconda_log.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'anaconda_log.py') diff --git a/anaconda_log.py b/anaconda_log.py index fb9c76815..aaa8c449e 100644 --- a/anaconda_log.py +++ b/anaconda_log.py @@ -24,6 +24,10 @@ DEFAULT_LEVEL = logging.INFO logFile = "/tmp/anaconda.log" +logLevelMap = {"debug": logging.DEBUG, "info": logging.INFO, + "warning": logging.WARNING, "error": logging.ERROR, + "critical": logging.CRITICAL} + # Base class for logger instances. This is what will be created any time # someone calls logging.getLogger("whatever"). We need this class to # provide the setHandlersLevel function. -- cgit