From 2308420fc62e45803fd9aeca24c69b6703fec2dd Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 18 Dec 2007 23:27:02 -0700 Subject: [PATCH] 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 --- src/allmydata/node.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: -- 2.45.2