summaryrefslogtreecommitdiffstats
path: root/bootloader.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 /bootloader.py
parentbe9b1d17b23f3075f12a939cc7d11fe8687edcc9 (diff)
downloadanaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.tar.gz
anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.tar.xz
anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.zip
Use new logging system.
Diffstat (limited to 'bootloader.py')
-rw-r--r--bootloader.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/bootloader.py b/bootloader.py
index de9ca6665..5fa07d6b3 100644
--- a/bootloader.py
+++ b/bootloader.py
@@ -25,9 +25,11 @@ import string
from flags import flags
from constants import *
-from rhpl.log import log
from rhpl.translate import _
+import logging
+log = logging.getLogger("anaconda")
+
from booty import *
from bootloaderInfo import *
from fsset import *
@@ -71,7 +73,7 @@ def bootloaderSetupChoices(dispatch, bl, fsset, diskSet, dir):
# mbr and boot. boot is ALWAYS present. so if the dev isn't
# listed, it was mbr and we should nicely fall back to boot
if bl.defaultDevice not in keys:
- log("MBR not suitable as boot device; installing to partition")
+ log.warning("MBR not suitable as boot device; installing to partition")
bl.defaultDevice = "boot"
bl.setDevice(choices[bl.defaultDevice][0])
elif choices and choices.has_key("mbr"):
@@ -135,7 +137,7 @@ def writeBootloader(intf, instRoot, fsset, bl, langs, comps):
otherList.append((label, longlabel, dev))
if kernelLabel is None:
- log("unable to find default image, bailing")
+ log.error("unable to find default image, bailing")
if not justConfigFile:
w.pop()
return