mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-25 15:41:06 +00:00
node.py: remove the provoke-logport-furlfile-creation hack now that foolscap-0.2.3 does it for us, and add bridge-twisted-logs
This commit is contained in:
parent
bd187dfc50
commit
4ce196a9c4
@ -206,10 +206,7 @@ class Node(service.MultiService):
|
|||||||
os.path.join(self.basedir, "private","logport.furl"))
|
os.path.join(self.basedir, "private","logport.furl"))
|
||||||
self.tub.setOption("log-gatherer-furlfile",
|
self.tub.setOption("log-gatherer-furlfile",
|
||||||
os.path.join(self.basedir, "log_gatherer.furl"))
|
os.path.join(self.basedir, "log_gatherer.furl"))
|
||||||
# provoke foolscap into registering the logport when it can, so that
|
self.tub.setOption("bridge-twisted-logs", True)
|
||||||
# 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):
|
def log(self, msg, src="", args=(), **kw):
|
||||||
if src:
|
if src:
|
||||||
|
Loading…
Reference in New Issue
Block a user