From ad06ecd663388d31e24ed8a915cbb75c8c09e5e3 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Fri, 12 Aug 2005 17:02:54 +0000 Subject: Use new logging system. --- vnc.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'vnc.py') 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 -- cgit