summaryrefslogtreecommitdiffstats
path: root/partRequests.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 /partRequests.py
parentbe9b1d17b23f3075f12a939cc7d11fe8687edcc9 (diff)
downloadanaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.tar.gz
anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.tar.xz
anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.zip
Use new logging system.
Diffstat (limited to 'partRequests.py')
-rw-r--r--partRequests.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/partRequests.py b/partRequests.py
index b0cd01bc5..cd15686f5 100644
--- a/partRequests.py
+++ b/partRequests.py
@@ -24,7 +24,6 @@ import os, sys, math
from constants import *
from rhpl.translate import _
-from rhpl.log import log
import fsset
import raid
@@ -32,6 +31,9 @@ import lvm
import partedUtils
import partIntfHelpers
+import logging
+log = logging.getLogger("anaconda")
+
class DeleteSpec:
"""Defines a preexisting partition which is intended to be removed."""
@@ -750,7 +752,7 @@ class VolumeGroupRequestSpec(RequestSpec):
"""Return a device which can be solidified."""
if self.dev:
# FIXME: this warning can probably be removed post-beta
- log("WARNING: getting self.dev more than once for %s" %(self,))
+ log.warning("getting self.dev more than once for %s" %(self,))
return self.dev
pvs = []
@@ -776,9 +778,9 @@ class VolumeGroupRequestSpec(RequestSpec):
for pvid in self.physicalVolumes:
pvreq = partitions.getRequestByID(pvid)
size = pvreq.getActualSize(partitions, diskset)
- #log("size for pv %s is %s" % (pvid, size))
+ #log.info("size for pv %s is %s" % (pvid, size))
size = lvm.clampPVSize(size, self.pesize) - (self.pesize/1024)
- #log(" clamped size is %s" % (size,))
+ #log.info(" clamped size is %s" % (size,))
totalspace = totalspace + size
return totalspace