summaryrefslogtreecommitdiffstats
path: root/vnc.py
diff options
context:
space:
mode:
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