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 /vnc.py | |
parent | be9b1d17b23f3075f12a939cc7d11fe8687edcc9 (diff) | |
download | anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.tar.gz anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.tar.xz anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.zip |
Use new logging system.
Diffstat (limited to 'vnc.py')
-rw-r--r-- | vnc.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -20,6 +20,9 @@ from rhpl.translate import _, N_ import network import isys +import logging +log = logging.getLogger("anaconda") + def hasActiveNetDev(): # try to load /tmp/netinfo and see if we can sniff out network info netinfo = network.Network() @@ -27,8 +30,8 @@ def hasActiveNetDev(): try: ip = isys.getIPAddress(dev) except Exception, e: - log("Got an exception trying to get the ip addr of %s: " - "%s" %(dev, e)) + log.error("Got an exception trying to get the ip addr of %s: " + "%s" %(dev, e)) continue if ip == '127.0.0.1' or ip is None: continue |