diff options
author | Chris Lumens <clumens@redhat.com> | 2006-03-27 21:05:29 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-03-27 21:05:29 +0000 |
commit | c439b62f395f01403443f7cf9766239ff70e6265 (patch) | |
tree | 907347527e3ec32246149387a4f6f8085e96cb45 /anaconda_log.py | |
parent | 841bc6cce126c7ba789e5e8825203724d7cd8452 (diff) | |
download | anaconda-c439b62f395f01403443f7cf9766239ff70e6265.tar.gz anaconda-c439b62f395f01403443f7cf9766239ff70e6265.tar.xz anaconda-c439b62f395f01403443f7cf9766239ff70e6265.zip |
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.
Diffstat (limited to 'anaconda_log.py')
-rw-r--r-- | anaconda_log.py | 4 |
1 files changed, 4 insertions, 0 deletions
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. |