summaryrefslogtreecommitdiffstats
path: root/vnc.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 /vnc.py
parentbe9b1d17b23f3075f12a939cc7d11fe8687edcc9 (diff)
downloadanaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.tar.gz
anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.tar.xz
anaconda-ad06ecd663388d31e24ed8a915cbb75c8c09e5e3.zip
Use new logging system.
Diffstat (limited to 'vnc.py')
-rw-r--r--vnc.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/vnc.py b/vnc.py
index 2d840f9bc..88fc1cc91 100644
--- a/vnc.py
+++ b/vnc.py
@@ -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