summaryrefslogtreecommitdiffstats
path: root/cmdline.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-08-11 21:10:55 +0000
committerChris Lumens <clumens@redhat.com>2005-08-11 21:10:55 +0000
commitbe9b1d17b23f3075f12a939cc7d11fe8687edcc9 (patch)
tree2976ab4680cdf62106006ca7d5e7dd5d2ad9109e /cmdline.py
parent3fe2eaa6f45decc83d76c4ec15e8b6c53275cfca (diff)
downloadanaconda-be9b1d17b23f3075f12a939cc7d11fe8687edcc9.tar.gz
anaconda-be9b1d17b23f3075f12a939cc7d11fe8687edcc9.tar.xz
anaconda-be9b1d17b23f3075f12a939cc7d11fe8687edcc9.zip
Converted a lot more messages to the new logging system, but there's still
41 files to go. If your favorite log message needs to be on a different priority level, feel free to change it. Maybe we can have little commit wars over them.
Diffstat (limited to 'cmdline.py')
-rw-r--r--cmdline.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmdline.py b/cmdline.py
index a01e90e02..ec22b9c6d 100644
--- a/cmdline.py
+++ b/cmdline.py
@@ -21,9 +21,11 @@ import parted, rpm
from constants import *
from flags import flags
-from rhpl.log import log
from rhpl.translate import _, cat, N_
+import logging
+log = logging.getLogger("anaconda")
+
stepToClasses = { "install" : "setupProgressDisplay" }
class WaitWindow:
@@ -80,7 +82,7 @@ class InstallInterface:
def partedExceptionWindow(self, exc):
# if our only option is to cancel, let us handle the exception
# in our code and avoid popping up the exception window here.
- log("parted exception: %s: %s" %(exc.type_string,exc.message))
+ log.critical("parted exception: %s: %s" %(exc.type_string,exc.message))
if exc.options == parted.EXCEPTION_CANCEL:
return parted.EXCEPTION_UNHANDLED