]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
log a prominent warning message in the case that the introducer cannot be reached
authorrobk-org <robk-org@allmydata.com>
Tue, 5 Jun 2007 01:48:53 +0000 (18:48 -0700)
committerrobk-org <robk-org@allmydata.com>
Tue, 5 Jun 2007 01:48:53 +0000 (18:48 -0700)
src/allmydata/introducer.py

index 675bd94df16bf093306d01795dd9c7382c7a271f..96dd875b2283fcba125bb8c1ab304ea4e8a40f30 100644 (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)