From: Brian Warner Date: Wed, 19 Dec 2007 06:27:02 +0000 (-0700) Subject: node: provoke foolscap-0.2.2 into saving logport.furl, so we can attach to it with... X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri/?a=commitdiff_plain;h=2308420fc62e45803fd9aeca24c69b6703fec2dd;p=tahoe-lafs%2Ftahoe-lafs.git node: provoke foolscap-0.2.2 into saving logport.furl, so we can attach to it with 'flogtool dump'. Also, place it in private/, since logs are considered somewhat private --- diff --git a/src/allmydata/node.py b/src/allmydata/node.py index 29e5b24a..712662ee 100644 --- a/src/allmydata/node.py +++ b/src/allmydata/node.py @@ -204,9 +204,13 @@ class Node(service.MultiService): # TODO: twisted >2.5.0 offers maxRotatedFiles=50 self.tub.setOption("logport-furlfile", - os.path.join(self.basedir, "logport.furl")) + os.path.join(self.basedir, "private","logport.furl")) self.tub.setOption("log-gatherer-furlfile", os.path.join(self.basedir, "log_gatherer.furl")) + # provoke foolscap into registering the logport when it can, so that + # the 'logport.furl' file will be available for people to use + # 'flogtool tail'. + self.when_tub_ready().addCallback(lambda res: self.tub.getLogPortFURL()) def log(self, msg, src="", args=(), **kw): if src: