From: robk-org Date: Tue, 5 Jun 2007 01:48:53 +0000 (-0700) Subject: log a prominent warning message in the case that the introducer cannot be reached X-Git-Tag: allmydata-tahoe-0.3.0~29 X-Git-Url: https://git.rkrishnan.org/listings/index.php?a=commitdiff_plain;h=0bcf29fba442fe8c132d59bf541f9e78188e8fdd;p=tahoe-lafs%2Ftahoe-lafs.git log a prominent warning message in the case that the introducer cannot be reached --- diff --git a/src/allmydata/introducer.py b/src/allmydata/introducer.py index 675bd94d..96dd875b 100644 --- a/src/allmydata/introducer.py +++ b/src/allmydata/introducer.py @@ -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)