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 /zfcp.py | |
parent | be9b1d17b23f3075f12a939cc7d11fe8687edcc9 (diff) | |
download | anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.tar.gz anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.tar.xz anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.zip |
Use new logging system.
Diffstat (limited to 'zfcp.py')
-rw-r--r-- | zfcp.py | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -19,8 +19,9 @@ import iutil import isys from rhpl.translate import _, N_ -from rhpl.log import log +import logging +log = logging.getLogger("anaconda") class ZFCP: def __init__(self): @@ -133,17 +134,17 @@ class ZFCP: fnu = ur % (fcpdevices[i][0],fcpdevices[i][2],) try: fo = open(fno, "w") - log("echo %s > %s" % (0, fno)) + log.info("echo %s > %s" % (0, fno)) fo.write("0") fo.close() try: fu = open(fnu, "w") - log("echo %s > %s" % (fcpdevices[i][4], fnu)) + log.info("echo %s > %s" % (fcpdevices[i][4], fnu)) fu.write("%s\n" % (fcpdevices[i][4],)) fu.close() try: fp = open(fnp, "w") - log("echo %s > %s" % (fcpdevices[i][2], fnp)) + log.info("echo %s > %s" % (fcpdevices[i][2], fnp)) fp.write("%s\n" % (fcpdevices[i][2],)) fp.close() except: @@ -166,27 +167,27 @@ class ZFCP: fnu = ua % (fcpdevices[i][0],fcpdevices[i][2],) try: fp = open(fnp, "w") - log("echo %s > %s" % (fcpdevices[i][2], fnp)) + log.info("echo %s > %s" % (fcpdevices[i][2], fnp)) fp.write("%s\n" % (fcpdevices[i][2],)) fp.close() try: fu = open(fnu, "w") - log("echo %s > %s" % (fcpdevices[i][4], fnu)) + log.info("echo %s > %s" % (fcpdevices[i][4], fnu)) fu.write("%s\n" % (fcpdevices[i][4],)) fu.close() try: fo = open(fno, "w") - log("echo %s > %s" % (1, fno)) + log.info("echo %s > %s" % (1, fno)) fo.write("1") fo.close() except: - log("opening %s failed" %(fno,)) + log.warning("opening %s failed" %(fno,)) continue except: - log("opening %s failed" %(fnu,)) + log.warning("opening %s failed" %(fnu,)) continue except: - log("opening %s failed" %(fnp,)) + log.warning("opening %s failed" %(fnp,)) continue def writeModprobeConf(self, fcpdevices): |