diff options
author | Chris Lumens <clumens@redhat.com> | 2005-08-12 17:02:54 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2005-08-12 17:02:54 +0000 |
commit | ad06ecd663388d31e24ed8a915cbb75c8c09e5e3 (patch) | |
tree | 7ec622b907c6b5ba672512bba993a0e109cfdb18 /installmethod.py | |
parent | be9b1d17b23f3075f12a939cc7d11fe8687edcc9 (diff) | |
download | anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.tar.gz anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.tar.xz anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.zip |
Use new logging system.
Diffstat (limited to 'installmethod.py')
-rw-r--r-- | installmethod.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/installmethod.py b/installmethod.py index f2b153598..a02df6c1a 100644 --- a/installmethod.py +++ b/installmethod.py @@ -16,7 +16,8 @@ import string from hdrlist import groupSetFromCompsFile from constants import * -from rhpl.log import log +import logging +log = logging.getLogger("anaconda") class FileCopyException(Exception): def __init__(self, s = ""): @@ -37,10 +38,10 @@ class InstallMethod: for pre in tryloc: tmpname = pre + "/" + file if os.access(tmpname, os.R_OK): - log("Using file://%s", tmpname) + log.info("Using file://%s", tmpname) return "file://%s" %(tmpname,) - log("Unable to find %s", file) + log.error("Unable to find %s", file) return None def protectedPartitions(self): @@ -76,7 +77,7 @@ class InstallMethod: break if tmppath is None: - log("Unable to find temp path, going to use ramfs path") + log.warning("Unable to find temp path, going to use ramfs path") return "/tmp/" return tmppath |