summaryrefslogtreecommitdiffstats
path: root/harddrive.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-08-12 17:02:54 +0000
committerChris Lumens <clumens@redhat.com>2005-08-12 17:02:54 +0000
commitad06ecd663388d31e24ed8a915cbb75c8c09e5e3 (patch)
tree7ec622b907c6b5ba672512bba993a0e109cfdb18 /harddrive.py
parentbe9b1d17b23f3075f12a939cc7d11fe8687edcc9 (diff)
downloadanaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.tar.gz
anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.tar.xz
anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.zip
Use new logging system.
Diffstat (limited to 'harddrive.py')
-rw-r--r--harddrive.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/harddrive.py b/harddrive.py
index 78e4ec5a1..23e47e430 100644
--- a/harddrive.py
+++ b/harddrive.py
@@ -23,9 +23,11 @@ import iutil
import rpm
import string
from rhpl.translate import _, cat, N_
-from rhpl.log import log
from constants import *
+import logging
+log = logging.getLogger("anaconda")
+
FILENAME = 1000000
# Install from one or more iso images
@@ -134,8 +136,8 @@ class HardDriveInstallMethod(InstallMethod):
# will mount the appropriate ISO image as required by CD # in header
def getRPMFilename(self, h, timer, callback=None):
if self.mediaIsMounted != h[1000002]:
- log("switching from iso %s to %s" %(self.mediaIsMounted,
- h[1000002]))
+ log.info("switching from iso %s to %s" %(self.mediaIsMounted,
+ h[1000002]))
self.umountMedia()
self.mountMedia(h[1000002])
@@ -188,7 +190,7 @@ class HardDriveInstallMethod(InstallMethod):
try:
self.umountMedia()
except:
- log("unable to unmount media")
+ log.error("unable to unmount media")
# we cannot remove the partition we are hosting hard drive install from
def protectedPartitions(self):