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 /partedUtils.py | |
parent | be9b1d17b23f3075f12a939cc7d11fe8687edcc9 (diff) | |
download | anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.tar.gz anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.tar.xz anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.zip |
Use new logging system.
Diffstat (limited to 'partedUtils.py')
-rw-r--r-- | partedUtils.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/partedUtils.py b/partedUtils.py index ccf26d055..e905cc553 100644 --- a/partedUtils.py +++ b/partedUtils.py @@ -29,9 +29,11 @@ import lvm from flags import flags from partErrors import * -from rhpl.log import log from rhpl.translate import _ +import logging +log = logging.getLogger("anaconda") + fsTypes = {} fs_type = parted.file_system_type_get_next () @@ -283,7 +285,7 @@ def checkDasdFmt(disk, intf): devs = isys.getDasdDevPort() dev = "/dev/%s (%s)" %(disk.dev.path[5:], devs[device]) except Exception, e: - log("exception getting dasd dev ports: %s" %(e,)) + log.critical("exception getting dasd dev ports: %s" %(e,)) dev = "/dev/%s" %(disk.dev.path[5:],) rc = intf.messageWindow(_("Warning"), @@ -409,7 +411,7 @@ def sniffFilesystemType(device): if len(buf) < pagesize: try: - log("Tried to read pagesize for %s in sniffFilesystemType and only read %s", dev, len(buf)) + log.error("Tried to read pagesize for %s in sniffFilesystemType and only read %s", dev, len(buf)) except: pass return None @@ -774,7 +776,7 @@ class DiskSet: os.close(p[1]) os.close(fd) os.execv(argList[0], argList) - log("failed to exec %s", argList) + log.critical("failed to exec %s", argList) os._exit(1) os.close(p[1]) @@ -886,8 +888,8 @@ class DiskSet: except parted.error, msg: recreate = 0 if zeroMbr: - log("zeroMBR was set and invalid partition table found " - "on %s" % (dev.path[5:])) + log.error("zeroMBR was set and invalid partition table " + "found on %s" % (dev.path[5:])) recreate = 1 elif not intf: DiskSet.skippedDisks.append(drive) |