diff options
author | Chris Lumens <clumens@redhat.com> | 2005-10-11 19:28:16 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2005-10-11 19:28:16 +0000 |
commit | 3c50a0d576253a198582c9204a82c2c864a478e1 (patch) | |
tree | 0119f307ffb8fbd1aefce031743b9521791f1fb3 /kickstart.py | |
parent | cdb1df35fc38e9425be9a84c3e72586a0c01ac9b (diff) | |
download | anaconda-3c50a0d576253a198582c9204a82c2c864a478e1.tar.gz anaconda-3c50a0d576253a198582c9204a82c2c864a478e1.tar.xz anaconda-3c50a0d576253a198582c9204a82c2c864a478e1.zip |
Move redirection of warnings module messages from kickstart.py to anaconda
so all deprecation warnings will end up getting logged.
Diffstat (limited to 'kickstart.py')
-rw-r--r-- | kickstart.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/kickstart.py b/kickstart.py index 573aab5f1..00918e738 100644 --- a/kickstart.py +++ b/kickstart.py @@ -26,19 +26,12 @@ import string import partRequests import urlgrabber.grabber as grabber import lvm -import warnings from pykickstart.parser import * from pykickstart.data import * import logging log = logging.getLogger("anaconda") -# Send kickstart warnings to the anaconda log. -def KSshowwarning(message, category, filename, lineno, file=sys.stderr): - log.warning("%s: %s" % (category, message)) - -warnings.showwarning = KSshowwarning - class AnacondaKSScript(Script): def run(self, chroot, serial, intf = None): import tempfile |