Fix log message args

This commit is contained in:
Dan Williams 2006-08-09 15:49:50 -04:00
parent ddddde54b1
commit a3b81d5f0c

View File

@ -567,8 +567,8 @@ class PresenceService(object):
browser_obj = dbus.Interface(self._system_bus.get_object(avahi.DBUS_NAME, st_browser), browser_obj = dbus.Interface(self._system_bus.get_object(avahi.DBUS_NAME, st_browser),
avahi.DBUS_INTERFACE_SERVICE_TYPE_BROWSER) avahi.DBUS_INTERFACE_SERVICE_TYPE_BROWSER)
except dbus.DBusException, exc: except dbus.DBusException, exc:
logging.error("got exception %s while attempting to browse domain %s on %i.%i" % (domain, interface, protocol))
str_exc = str(exc) str_exc = str(exc)
logging.error("got exception %s while attempting to browse domain %s on %i.%i" % (str_exc, domain, interface, protocol))
if str_exc.find("The name org.freedesktop.Avahi was not provided by any .service files") >= 0: if str_exc.find("The name org.freedesktop.Avahi was not provided by any .service files") >= 0:
raise Exception("Avahi does not appear to be running. '%s'" % str_exc) raise Exception("Avahi does not appear to be running. '%s'" % str_exc)
else: else: