diff options
author | Chris Lumens <clumens@redhat.com> | 2005-08-11 21:10:55 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2005-08-11 21:10:55 +0000 |
commit | be9b1d17b23f3075f12a939cc7d11fe8687edcc9 (patch) | |
tree | 2976ab4680cdf62106006ca7d5e7dd5d2ad9109e /dispatch.py | |
parent | 3fe2eaa6f45decc83d76c4ec15e8b6c53275cfca (diff) | |
download | anaconda-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 'dispatch.py')
-rw-r--r-- | dispatch.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/dispatch.py b/dispatch.py index c1154db6f..acb3f013c 100644 --- a/dispatch.py +++ b/dispatch.py @@ -43,7 +43,8 @@ from upgrade import findRootParts from network import networkDeviceCheck from installmethod import doMethodComplete -from rhpl.log import log +import logging +log = logging.getLogger("anaconda") # These are all of the install steps, in order. Note that upgrade and # install steps are the same thing! Upgrades skip install steps, while @@ -200,7 +201,7 @@ class Dispatcher: if not stepExists.has_key(name): #XXX: hack for yum support #raise KeyError, ("step %s does not exist" % name) - log("warning: step %s does not exist", name) + log.warning("step %s does not exist", name) def stepInSkipList(self, step): return self.skipSteps.has_key(step) @@ -221,7 +222,7 @@ class Dispatcher: return #raise KeyError, ("unknown step %s" % stepToSkip) - log("warning: step %s does not exist", name) + log.warning("step %s does not exist", name) def moveStep(self): if self.step == None: @@ -239,7 +240,7 @@ class Dispatcher: info = installSteps[self.step] if ((type(info[1]) == FunctionType) and (not self.skipSteps.has_key(info[0]))): - log("moving (%d) to step %s" %(self.dir, info[0])) + log.info("moving (%d) to step %s" %(self.dir, info[0])) (func, args) = info[1:] rc = apply(func, self.bindArgs(args)) if rc == DISPATCH_BACK: @@ -261,7 +262,7 @@ class Dispatcher: self.step = len(installSteps) - 1 while self.skipSteps.has_key(installSteps[self.step][0]): self.step = self.step - 1 - log("moving (%d) to step %s" %(self.dir, installSteps[self.step][0])) + log.info("moving (%d) to step %s" %(self.dir, installSteps[self.step][0])) def bindArgs(self, args): newArgs = () |