def startService(self): log.msg("Airpnp started. Will now search for UPnP devices!") if self.iweb: # apparently, logging in __init__ is too early iwebport = self.iweb.port log.msg("Starting interactive web at port %d" % (iwebport, )) DeviceDiscoveryService.startService(self)