'tahoe start': only create logs/ if we're starting a tahoe node

This commit is contained in:
Brian Warner 2008-02-18 00:31:28 -07:00
parent 1af3bfb1d4
commit 92a6ab6e86
1 changed files with 1 additions and 1 deletions

View File

@ -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."
sys.exit(1)
fileutil.make_dirs(os.path.join(basedir, "logs"))
cmd.extend(["-y", tac])
if nodetype in ("client", "introducer"):
fileutil.make_dirs(os.path.join(basedir, "logs"))
cmd.extend(["--logfile", os.path.join("logs", "twistd.log")])
if profile:
cmd.extend(["--profile=profiling_results.prof", "--savestats",])