From 0bcf29fba442fe8c132d59bf541f9e78188e8fdd Mon Sep 17 00:00:00 2001 From: robk-org Date: Mon, 4 Jun 2007 18:48:53 -0700 Subject: [PATCH] log a prominent warning message in the case that the introducer cannot be reached --- src/allmydata/introducer.py | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.45.2