mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-22 12:28:05 +00:00
'tahoe start': only create logs/ if we're starting a tahoe node
This commit is contained in:
parent
1af3bfb1d4
commit
92a6ab6e86
@ -57,9 +57,9 @@ def do_start(basedir, profile=False, out=sys.stdout, err=sys.stderr):
|
|||||||
print "Can't find twistd (it comes with Twisted). Aborting."
|
print "Can't find twistd (it comes with Twisted). Aborting."
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
fileutil.make_dirs(os.path.join(basedir, "logs"))
|
|
||||||
cmd.extend(["-y", tac])
|
cmd.extend(["-y", tac])
|
||||||
if nodetype in ("client", "introducer"):
|
if nodetype in ("client", "introducer"):
|
||||||
|
fileutil.make_dirs(os.path.join(basedir, "logs"))
|
||||||
cmd.extend(["--logfile", os.path.join("logs", "twistd.log")])
|
cmd.extend(["--logfile", os.path.join("logs", "twistd.log")])
|
||||||
if profile:
|
if profile:
|
||||||
cmd.extend(["--profile=profiling_results.prof", "--savestats",])
|
cmd.extend(["--profile=profiling_results.prof", "--savestats",])
|
||||||
|
Loading…
Reference in New Issue
Block a user