log a prominent warning message in the case that the introducer cannot be reached

This commit is contained in:
robk-org 2007-06-04 18:48:53 -07:00
parent 7c479ba8a7
commit 0bcf29fba4

View File

@ -46,6 +46,11 @@ class IntroducerClient(service.Service, Referenceable):
service.Service.startService(self)
self.introducer_reconnector = self.tub.connectTo(self.introducer_furl,
self._got_introducer)
def connect_failed(failure):
self.log("\n\nInitial Introducer connection failed: perhaps it's down\n")
log.err(failure)
d = self.tub.getReference(self.introducer_furl)
d.addErrback(connect_failed)
def log(self, msg):
self.parent.log(msg)